I am trying to align two divs next to each other in a field. I use angularJS to generate input fields dynamically, I want to add an image for the delete option next to each input field. I used "display: inline-block". but it does not work.
The code I have so far is:
<div class="contentBox box effectmission" ng-repeat="mission in missions">
<div class="boxheader">
<span style="font-size: large; font-family: monospace; font-weight: bold;">EDIT MISSION NAME</span><input id="{{mission.id}}" type="text" ng-model="mission.missionInfo" class="form-control" style="background-color: #e8e8e8">
</div>
<div style="padding-top: 10px;">
<span style="font-size: large; font-family: monospace; font-weight: bold; margin-left:5%;">EDIT MISSION POINTS</span><br />
</div>
<div style="padding-top: 10px;">
<ol style="float: left; width: 100%;">
<li id="missioncontent.id" ng-repeat="missioncontent in mission.missionContent" style="padding: 2px; width: 100%;">
<div>
<input id="{{missioncontent.id}}" type="text" ng-model="missioncontent.info" class="form-control" style="background-color: #e8e8e8; width: 80%;">
</div>
<div style="float: right; width: 20%; display: inline-block;">
<span>v</span>
</div>
</li>
</ol>
</div>
</div>
everything that I have so far is as follows.

I want the input fields and the image to align correctly next to each other (instead of "v" I will use the image.)
source
share