The first step of creating any HTML document is formatting page structure. To create new website pages you can use blank.html file that is included into the purchased template package.
If the layout looks like a single sheet of paper on top of <body> and all content sections are wrapped by a single width-defining element, use the following code:
HTML
<div id="main"> <header> <!-- Your Logo here --> <nav> <!-- Your Main Menu here --> </nav> </header> <section> <div class="container_24"> <div class="wrapper"> <!-- Your Columns here --> </div> </div> </section> <footer> <!-- Your Footer here --> </footer> </div>
CSS
#main{ width:1000px; /* Your Main Block width */ margin:0 auto; background:#fff; /* Your Background Color */ }
If the layout is subdivided into several vertical aligned sections, covering the full width of the viewport and the content area is aligned or centered within these sections, use the following code:
HTML
<header class="full-width-bg"> <div class="header-box"> <!-- Your Logo here --> <nav> <!-- Your Main Menu here --> </nav> </div> </header> <section class="full-width-bg"> <div class="container_24"> <div class="wrapper"> <!-- Your Columns here --> </div> </div> </section> <footer class="full-width-bg"> <div class="footer-box"> <!-- Your Footer here --> </div> </footer>
CSS
.full-width-bg{ width:100%; background:#ddd; /* Your Backgrounds Color */ } .header-box{ width:960px; /* Your Header Block width */ margin:0 auto; } .footer-box{ width:960px; /* Your Footer Block width */ margin:0 auto; }
The template is based on a grid system that uses 24 columns. In order to create the full-witdh column you will need to insert the following code:
<div class="container_24"> <div class="wrapper"> <div class="grid_24"> <!-- insert content here --> </div> </div> </div>
Lets examine the layout creation process, step by step:
In order to create two columns you will need to insert the following code:
<div class="container_24"> <div class="wrapper"> <div class="grid_12"> <!-- insert content here --> </div> <div class="grid_12"> <!-- insert content here --> </div> </div> </div>
Two Columns Layout creation:
In order to create three columns you will need to insert the following code:
<div class="container_24"> <div class="wrapper"> <div class="grid_8"> <!-- insert content here --> </div> <div class="grid_8"> <!-- insert content here --> </div> <div class="grid_8"> <!-- insert content here --> </div> </div> </div>
Three Columns Layout creation:
In order to create four columns you will need to insert the following code:
<div class="container_24"> <div class="wrapper"> <div class="grid_6"> <!-- insert content here --> </div> <div class="grid_6"> <!-- insert content here --> </div> <div class="grid_6"> <!-- insert content here --> </div> <div class="grid_6"> <!-- insert content here --> </div> </div> </div>
Four Columns Layout creation:
In order to create layout with left sidebar you will need to insert the following code:
<div class="container_24"> <div class="wrapper"> <div class="grid_6"> <!-- insert content here --> </div> <div class="grid_18"> <!-- insert content here --> </div> </div> </div>
Layout with left sidebar creation:
In order to create layout with right sidebar you will need to insert the following code:
<div class="container_24"> <div class="wrapper"> <div class="grid_18"> <!-- insert content here --> </div> <div class="grid_6"> <!-- insert content here --> </div> </div> </div>
Layout with right sidebar creation:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat pharetra turpis, sed posuere nisi porta a. Etiam vel enim lorem. Nunc lorem sapien, ultrices at faucibus at, varius a est. Cras ultricies, quam ac lobortis porta, ante sapien mollis dui.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat pharetra turpis, sed posuere nisi porta a. Morbi feugiat pharetra turpis, sed posuere nisi porta a. Etiam vel enim lorem. Nunc lorem sapien, ultrices at faucibus at, varius a est. Cras ultricies, quam ac lobortis porta, ante sapien mollis dui.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat pharetra turpis, sed posuere nisi porta a. Etiam vel enim lorem. Nunc lorem sapien, ultrices at faucibus at, varius a est. Cras ultricies, quam ac lobortis porta, ante sapien mollis dui.
Floating Left
In order to create an image block with the text wrapping it on the right, add class "image_left" to the image.
<div class="wrapper"> <div class="image_left"> <img src="YourImage.jpg" alt=""> </div> <p> <!-- insert text here --> </p> </div>
Floating Left 2
In order to create left-aligned image block and right-aligned text block add class "image_left" to the image and class "extra-wrap" to the text block.
<div class="wrapper"> <div class="image_left"> <img src="YourImage.jpg" alt=""> </div> <p class="extra-wrap"> <!-- insert text here --> </p> </div>
Floating Right
In order to create an image block with the text wrapping it on the left, add class "image_right" to the image.
<div class="wrapper"> <div class="image_right"> <img src="YourImage.jpg" alt=""> </div> <p> <!-- insert text here --> </p> </div>
Image without style
To create simple image block without any styles use the "img" tag. Using the "src" image attribute input the root to the image file.
<img src="images/YourImage.jpg" alt="">
Image Style 1
Create "span" tag with class "image_style1" and insert "img" tag with "src" attribute and root to the image file.
<span class="image_style1"> <img src="images/YourImage.jpg" alt=""> </span>
Image Style 2
Create "span" tag with class "image_style2" and insert "img" tag with "src" attribute and root to the image file.
<span class="image_style2"> <img src="images/YourImage.jpg" alt=""> </span>
Image Style 3
Create "span" tag with class "image_style3" and insert "img" tag with "src" attribute and root to the image file.
<span class="image_style3"> <img src="images/YourImage.jpg" alt=""> </span>