With twitter bootstrap.css and bootstrap-responsive.css, .span*
become equivalent to a .span12
under 768px
.
This behaviour is perfectly fine when text is embedded, but for pictures it make sense to use a 2x2
layout between 4x1
and 1x4
.
How to obtain this 2x2
layout from 767px
to 320px
?
768px wide (4x1)
767px wide (1x4)
HTML:
<div class="row-fluid">
<ul class="thumbnails">
<li class="span3">
<div class="thumbnail" href="#">
<img alt="" src="http://placehold.it/200x150">
<p>1</p>
</div>
</li>
<li class="span3">
<div class="thumbnail" href="#">
<img alt="" src="http://placehold.it/200x150">
<p>2</p>
</div>
</li>
<li class="span3">
<div class="thumbnail" href="#">
<img alt="" src="http://placehold.it/200x150">
<p>3</p>
</div>
</li>
<li class="span3">
<div class="thumbnail" href="#">
<img alt="" src="http://placehold.it/200x150">
<p>4</p>
</div>
</li>
</ul>
</div>
http://jsfiddle.net/baptme/jWcdS/
Notes: This question is inspired by the request asked in a comment on this answer