html - Bootstrap positioning of glyphicon -
how can align plus sign glphyicon?
html code :
<li><a href="#"><span class="glyphicon glyphicon-tag"></span>  dashboard<span class="glyphicon glyphicon-plus pull-right"></span></a></li>
the first span add tag before text dashboard
you can first adding class hyperlink tags occure:
<li> <a href="#" class="right-icon"> <span class="glyphicon glyphicon-tag"></span>  dashboard <span class="glyphicon glyphicon-plus pull-right"></span> </a> </li>
then using css , class selector right-icon
can like:
.right-icon > .glyphicon:last-child { position: absolute; top: 2px; right: 2px; }
what take last child glyphicon
hyperlink , position absolute on top right 2px;
Comments
Post a Comment