Bootstrap combining rows (rowspan) -


i testing twitter bootstrap , got stuck basic scaffolding rows. revisited documentation number of times , can see nesting columns can nest columns within column cannot locate capability of combining rows 1 , have aligned column next uncombined rows.

below picture should illustrate want accomplish.

rowspan layout sample

the workaround solution came across using tables don't idea view responsiveness wouldn't work use of tables.

does have elegant solution this? of web layout need fine level of flexibility great if pick useful here.

divs stack vertically default, there no need special handling of "rows" within column.

div {    height:50px;  }  .short-div {    height:25px;  }
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />    <div class="container">    <h1>responsive bootstrap</h1>    <div class="row">      <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5" style="background-color:red;">span 5</div>      <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3" style="background-color:blue">span 3</div>      <div class="col-lg-2 col-md-2 col-sm-3 col-xs-2" style="padding:0px">        <div class="short-div" style="background-color:green">span 2</div>        <div class="short-div" style="background-color:purple">span 2</div>      </div>      <div class="col-lg-2 col-md-2 col-sm-3 col-xs-2" style="background-color:yellow">span 2</div>    </div>  </div>  <div class="container-fluid">    <div class="row-fluid">      <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">        <div class="short-div" style="background-color:#999">span 6</div>        <div class="short-div">span 6</div>      </div>      <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6" style="background-color:#ccc">span 6</div>    </div>  </div>

here's the fiddle.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -