I played a little with bootstrap, then I found this nasty problem on how to center the span class. After trying the offset to center a certain range, I can center a certain range class, for example (span8 with offset2 or span6 with offset 3), but the problem is that I want to center span7 / span9 / span10.
Then I try to use some tricks to center span10 ...
<div class="container"> <div class="row"> <div class="span1" style="background:black;">Dummy</div> <div class="span10" style="background:blue;">The Real One</div> <div class="span1" style="background:black;">Dummy</div> </div> </div>
Is there any solution, not using the above code?
And what should I do if I want to center span7, span9, or even span11 without changing the margin-left field? Since the class line already has a margin-left value of 20 pixels, this makes it difficult to center the range.
source share