You have three choices to explore:
- Consider using Twitter Bootstrap v1.XX where the grid consisted of 16 columns instead of 12, allowing you flexibility with two extra columns.
For reference, here are the old documentation links for version 1.4.0:
To access the v1.4 bootstrap files, visit: https://github.com/twitter/bootstrap/zipball/v1.4.0
- Create a customized Bootstrap v2.XX build tailored to your needs.
Use this link to customize and generate a unique build:
Note: If you opt for customization, you may need to adjust the 'span*' organization in your HTML file to accommodate the change to 14 or 16 columns, along with new margin/padding values.
(Special thanks to @jmeas for highlighting the Customization feature).
- If you anticipate overlapping elements, stick to the default build and utilize the following technique.
One method is to use the offset*
class and create a corresponding offset-*
with a negative value.
Sample HTML code:
<div class="container">
<div class="row-fluid">
<div class="span3">xx</div>
<div class="span8 offset-1">yy</div>
<div class="span3 offset-1">zz</div>
</div>
</div>
Corresponding CSS styles:
.row-fluid .offset-1 {
margin-left: -10.638297872340425%;
*margin-left: -10.53191489361702%;
}
.row-fluid .offset-1:first-child {
margin-left: -8.51063829787234%;
*margin-left: -8.404255319148938%;
}
Check out the Fiddle where I've included RGBA colors to showcase overlapping elements within the '12-grid' structure.