Difference between revisions of "Page templates"

From WikiName
Jump to: navigation, search
(Full width hybrid template)
(Full width hybrid template)
 
Line 2: Line 2:
 
=== Full width hybrid template ===
 
=== Full width hybrid template ===
 
There will be times when you want to span the background of a row across the full width of the page. In such cases use the hybrid template and wrap your rows between
 
There will be times when you want to span the background of a row across the full width of the page. In such cases use the hybrid template and wrap your rows between
<pre> <code>  
+
<pre>
 
<div class="" id="row1" style="background:red">
 
<div class="" id="row1" style="background:red">
 
<div class="hybrid">
 
<div class="hybrid">
 
<div class="div-content">
 
<div class="div-content">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
+
Row content here
 
+
  
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</code>
 
 
</pre>  
 
</pre>  
 
Ideally you should give an ID or class for the outer most div and style it using the "'''Custom CSS for the page'''"
 
Ideally you should give an ID or class for the outer most div and style it using the "'''Custom CSS for the page'''"

Latest revision as of 12:16, 21 March 2015

Swift comes with 10+ handy page templates, here we will describe how and when to use them.

Full width hybrid template

There will be times when you want to span the background of a row across the full width of the page. In such cases use the hybrid template and wrap your rows between

<div class="" id="row1" style="background:red">
<div class="hybrid">
<div class="div-content">
Row content here

</div>
</div>
</div>

Ideally you should give an ID or class for the outer most div and style it using the "Custom CSS for the page"