html - Mobile view by text length - bootstrap -


i need write html page, represent customer requests, (i collapse). have problem in mobile view. if title long, line break 2 lines,and want status aligned right after title.
in addition need limit number of characters in title , add 3 points if needed. how can this?
example:
short title medium title long title
html here:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>                         <div class="row">                          <div class="col-xs-1" >1.5.16</div>                          <div class="col-md-1 hidden-xs" >235266 -</div>                          <div class="col-xs-4" >title</div>                          <div class="col-md-1 hidden-xs" >1.7.16</div>                          <div style="float:left;" class="col-xs-3 col-sm-3 hidden-md">| status</div>                      </div>

add class truncate title , css .truncate { width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } , can give 'pull-right' class status align right


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -