html - Glyph icon vertically down next to image -


i want place glyphicon next image close bottom, comes mid of image.

 <div class="col-xs-3">             <img src="@url.content(model.defaultimagepath)" alt="image" height="150" width="150"/>             <span class="glyphicon glyphicon-pencil" style="color: #292929; background-color: #e3dac9;"></span>             <span class="glyphicon glyphicon-plus" style="color: #292929;background-color: #e3dac9"></span>          </div> 

how rendered:

enter image description here

this how want:

enter image description here

use vertical-align:bottom

span {    vertical-align: bottom;  }
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />  <div class="col-xs-12">    <img src="http://www.fillmurray.com/150/150" alt="image" height="150" width="150" />    <span class="glyphicon glyphicon-pencil" style="color: #292929; background-color: #e3dac9;"></span>    <span class="glyphicon glyphicon-plus" style="color: #292929;background-color: #e3dac9"></span>  </div>


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -