aboutsummaryrefslogtreecommitdiff
path: root/docs/css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-02-14 00:43:43 -0800
committerMark Otto <[email protected]>2013-02-14 00:43:43 -0800
commit6b14de292a53e00dc4fd9ef02b1d05dec391b613 (patch)
treec8ccb5dacf6e1c0a2708ee260c5275d1cf9c10c5 /docs/css.html
parent7e6211e244fe0bc95ffa7327477b094b0bea836a (diff)
downloadbootstrap-6b14de292a53e00dc4fd9ef02b1d05dec391b613.tar.xz
bootstrap-6b14de292a53e00dc4fd9ef02b1d05dec391b613.zip
pygmentize grid section; update bs-docs-example corners
Diffstat (limited to 'docs/css.html')
-rw-r--r--docs/css.html50
1 files changed, 28 insertions, 22 deletions
diff --git a/docs/css.html b/docs/css.html
index aba4198a9..fd6e158e4 100644
--- a/docs/css.html
+++ b/docs/css.html
@@ -475,12 +475,13 @@ title: CSS
<h3>Basic grid HTML</h3>
<p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p>
-<pre class="prettyprint linenums">
-&lt;div class="row"&gt;
- &lt;div class="span4"&gt;...&lt;/div&gt;
- &lt;div class="span8"&gt;...&lt;/div&gt;
-&lt;/div&gt;
-</pre>
+{% highlight html linenos %}
+<div class="row">
+ <div class="span8">8</div>
+ <div class="span4">4</div>
+</div>
+{% endhighlight %}
+
<p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p>
<h2>Offsetting columns</h2>
@@ -498,12 +499,12 @@ title: CSS
<div class="span6 offset6">6 offset 6</div>
</div><!-- /row -->
</div>
-<pre class="prettyprint linenums">
-&lt;div class="row"&gt;
- &lt;div class="span4"&gt;...&lt;/div&gt;
- &lt;div class="span4 offset4"&gt;...&lt;/div&gt;
-&lt;/div&gt;
-</pre>
+{% highlight html linenos %}
+<div class="row">
+ <div class="span4">...</div>
+ <div class="span4 offset4">...</div>
+</div>
+{% endhighlight %}
<h2>Nesting columns</h2>
@@ -521,17 +522,22 @@ title: CSS
</div>
</div>
</div>
-<pre class="prettyprint linenums">
-&lt;div class="row"&gt;
- &lt;div class="span9"&gt;
+{% highlight html linenos %}
+<div class="row">
+ <div class="span9">
Level 1: 9 columns
- &lt;div class="row"&gt;
- &lt;div class="span6"&gt;Level 2: 6 columns&lt;/div&gt;
- &lt;div class="span6"&gt;Level 2: 6 columns&lt;/div&gt;
- &lt;/div&gt;
- &lt;/div&gt;
-&lt;/div&gt;
-</pre>
+ <div class="row">
+ <div class="span6">
+ Level 2: 6 columns
+ </div>
+ <div class="span6">
+ Level 2: 6 columns
+ </div>
+ </div>
+ </div>
+</div>
+{% endhighlight %}
+
</section>