I have problems with the placement of the image and the input field. They are placed in a staggered way. I want them to be placed right next to each other, on a straight horizontal line. You can see the problem on the image below.
HTML:
<div id="wrapper">
<!--Inbox list and button to add a card-->
<div id="inboxList" class="cellContainer">
<p style="display: inline">Inbox</p>
<!--Button to add a Card-->
<input type="button" id="AddCardBtn" value="+ Add a Card..."/>
<hr class="fancy-line"/> <br/>
<!--Card div-->
<div id="userAddedCard"> <br/>
<div>
</div>
</div>
</div>
</div>
Jquery:
var $div = $('<div />').addClass('sortable-div');
$('<img />', { "src": "/Pages/Images/calendar.png" }).addClass('image').appendTo($div);
$('<input/>', { "type": "text", "class": "ctb" }).addClass('ctb').appendTo($div);
CSS:
.ctb {
display:inline-block;
width: 20px;
padding-left:2%;
}
.image {
display:inline-block;
height:19px;
width:19px;
padding-top:7%;
padding-left:5%;
}