How do I apply text justify on Bootstrap alerts -


i'd ask how justify (right , left aligned) text inside bootstrap alerts. tried use class text-justify alert classes not text justified. code follows:

<div class="alert alert-danger alert-error text-justify">     <a href="#" class="close" data-dismiss="alert">&times;</a>     <span class="glyphicon glyphicon-remove-circle"></span> lorem ipsum dolor sit amet, consectetur adipiscing elit. pellentesque scelerisque enim non dolor blandit lobortis. aenean risus elit, porta eu consectetur vel, mollis ut risus </div>. 

so far, i'm getting output below:

enter image description here

thanks

link bootply: http://www.bootply.com/d3oen9glog

change code , see.

<div class="alert alert-danger alert-error text-justify">   <div class="container">     <div class="row">       <a href="#" class="close" data-dismiss="alert">&times;</a>     </div>     <span class="glyphicon glyphicon-remove-circle"></span>      lorem ipsum dolor sit amet, consectetur adipiscing elit. pellentesque scelerisque enim       non dolor blandit lobortis. aenean risus elit, porta eu consectetur vel, mollis ut risus   </div> </div> 

the container div optional.

if don't want container , want close button , other elements in same line, use code instead.

<div class="alert alert-danger alert-error text-justify">   <div class="row">     <div class="col-xs-11">       <span class="glyphicon glyphicon-remove-circle"></span> lorem ipsum dolor sit amet, consectetur adipiscing elit. pellentesque scelerisque enim non dolor blandit lobortis. aenean risus elit, porta eu consectetur vel, mollis ut risus      </div>     <div class="col-xs-1">       <a href="#" class="close" data-dismiss="alert">×</a>     </div>    </div> </div> 

see updated bootply: http://www.bootply.com/tyrouan0x0


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -