twitter bootstrap - Collapse span into two columns -
updated
have tow columns twitterbootstrap span7
, span5
this:
<div class="row"> <div class="span7">column 1</div> <div class="span5">column 2</div> </div>
in span5
have content in definition list <dl>
on tablet , mobile screens (767px , below) collapses this:
| span7 | | span5 |
this makes collapsed span5
extremely tall , thin, therefore need split information in span5
2 columns this:
| span7 | | span5 | span5 |
any suggestion how without major hassle?
well, think have admit can specify how want "span5" content split. can't guessed browser. (maybe you'll want every other line, or split in in middle...)
so, let's assume original content :
<div class="row"> <div class="span7">span 7</div> <div class="span5"> <div>span 5-1</div> <div>span 5-2</div> </div> </div>
which makes
| span7 | | span5-1 | span5-2 |
this post should helpful : twitter bootstrap: how not scale columns single row under 767px
unfortunately, didn't manage better forced write content twice :
<div class="row-fluid"> <div class="span7">span 7</div> <div class="span5 hidden-phone"> <div>span 5-1</div> <div>span 5-2</div> </div> <div class="mobile-one visible-phone">span 5-1</div> <div class="mobile-two visible-phone">span 5-2</div> </div>
(you can test @ http://bootply.com/86089)
i'll post solution if manage find better...
Comments
Post a Comment