m |
m |
||
| (6 intermediate revisions by one user not shown) | |||
| Line 24: | Line 24: | ||
</li> | </li> | ||
</ul> | </ul> | ||
| − | </div> | + | </div> |
<div class="span5"> | <div class="span5"> | ||
<div style="padding:10px; | <div style="padding:10px; | ||
| Line 48: | Line 48: | ||
</div> | </div> | ||
</div> | </div> | ||
| + | <!-- | ||
| + | End Header & Navigation | ||
| + | --> | ||
<div class="row"> | <div class="row"> | ||
<div class="span12"> | <div class="span12"> | ||
| Line 60: | Line 63: | ||
</h1> | </h1> | ||
</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.< | + | 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. |
| − | + | <p>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.</p> | |
<p>The following sections allow Grid syntax: <a href="#">Content Box</a>, <a href="#">Content</a> and <a href="#">Grid Layout</a>. Content and Grid Layout, by default will use Wordpress's built in text editor to define the Grid, while the Content Box will use the Textarea field as the editor.</p> | <p>The following sections allow Grid syntax: <a href="#">Content Box</a>, <a href="#">Content</a> and <a href="#">Grid Layout</a>. Content and Grid Layout, by default will use Wordpress's built in text editor to define the Grid, while the Content Box will use the Textarea field as the editor.</p> | ||
| Line 95: | Line 98: | ||
<p>Content</p> | <p>Content</p> | ||
</div> | </div> | ||
| − | </div> | + | </div></pre> |
| − | + | </div> | |
<div class="span6"> | <div class="span6"> | ||
<h4>Results</h4> | <h4>Results</h4> | ||
<div class="alert alert-info"> | <div class="alert alert-info"> | ||
| − | Below | + | Below is what <em>that</em> funky code in your post, page or content box will produce. In this case, a 3 column layout. <span style="color:red;">(It is responsive to your website's width!)</span> |
</div> | </div> | ||
<div class="row"> | <div class="row"> | ||
| Line 114: | Line 117: | ||
</div> | </div> | ||
</div> | </div> | ||
| − | + | <div class="row"> | |
| − | + | <div class="span6"> | |
| − | + | <h4>Nested Example</h4> | |
| − | + | <pre class="prettyprint lang-html linenums"> | |
| − | + | ||
<div class="row"> | <div class="row"> | ||
<div class="span4"> | <div class="span4"> | ||
| Line 124: | Line 126: | ||
<div class="span8"> | <div class="span8"> | ||
<div class="row"> | <div class="row"> | ||
| − | & | + | <div class="span6"><div> |
| − | & | + | <div class="span6"><div> |
</div> | </div> | ||
| − | </div> | + | </div></pre> |
| − | + | ||
| − | + | ||
| − | + | ||
</div> | </div> | ||
| − | + | <div class="span6"> | |
| − | + | <h4>Results</h4> | |
| − | + | <div class="alert alert-info"> | |
| − | + | Below is what that funky code in your post, page or content box will produce. A 2 column layout with 2 nested sections in the 2nd column. <span style="color:red;">(It is responsive to your website's width!)</span> | |
| − | + | </div> | |
| − | + | ||
<div class="row"> | <div class="row"> | ||
| − | <div class=" | + | <div class="span4" span style="background-color:#CCCCCC;"> |
| − | + | Content | |
</div> | </div> | ||
| − | + | <div class="span8" span style="background-color:#CCCCCC;"> | |
| − | + | Content section header | |
| + | <div class="row"> | ||
| + | <div class="span6" span style="background-color:#EEEEEE;"> | ||
| + | Content 1 | ||
| + | </div> | ||
| + | <div class="span6" span style="background-color:#EEEEEE;"> | ||
| + | Content 2 | ||
| + | </div> | ||
| + | </div> | ||
| + | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
| − | |||
| − | |||
</html> | </html> | ||
The Grid consists of rows and columns. The row is simply given to the div tag as a class called "row", 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(1-12)". 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.
The following sections allow Grid syntax: Content Box, Content and Grid Layout. Content and Grid Layout, by default will use Wordpress's built in text editor to define the Grid, while the Content Box will use the Textarea field as the editor.
<div class="row">
<div class="span4">
<p>Content</p>
</div>
<div class="span4">
<p>Content</p>
</div>
<div class="span4">
<p>Content</p>
</div>
</div>
<div class="row">
<div class="span4">
</div>
<div class="span8">
<div class="row">
<div class="span6"><div>
<div class="span6"><div>
</div>
</div>