m |
m |
||
| Line 24: | Line 24: | ||
</div> | </div> | ||
The Grid can be used in any post, page or section within your PageLines theme. As long as the section you are coding grid syntax into is enabled on your page's template, it will render elegantly.<br><br> | The Grid can be used in any post, page or section within your PageLines theme. As long as the section you are coding grid syntax into is enabled on your page's template, it will render elegantly.<br><br> | ||
| − | The Grid consists of rows and columns. The row is simply given to the div tag as a class called <span style="color:red;">"row"</span>, and it is filled with "columns". There are 12 possible columns in a row, and they are given to the div tag as a class called <span style="color:red;">"span(1-12)"</span>. Depending upon the number you choose immediately following the "span" class determines how much | + | The Grid consists of rows and columns. The row is simply given to the div tag as a class called <span style="color:red;">"row"</span>, and it is filled with "columns". There are 12 possible columns in a row, and they are given to the div tag as a class called <span style="color:red;">"span(1-12)"</span>. Depending upon the number you choose immediately following the "span" class determines how much space in the row that column or "span" will take up.<br> |
So to begin a new row, we use the <div> tag and give it a | So to begin a new row, we use the <div> tag and give it a | ||
The following sections allow Grid syntax
The Syntax
<div class="row">
<div class="span4">
<p>Here is some content in the first section of our span4 column!</p>
</div>
<div class="span4">
<p>This content is in another span4 column, and now we are at a total of 8 columns.</p>
</div>
<div class="span4">
<p>This last bit of content is also in a column that spans 4 spaces, so that brings us to the ultimate number of 12.</p>
</div>
</div>