Two column layout template 2 : Two columns « Layout « HTML / CSS






Two column layout template 2

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />

<style type='text/css'>
/* ---------------------------------------------

  Template Name : HarvestField
  Template Code : S-0015
  Version : 1.2
  Author : Erwin Aligam
  Author URI : http://www.styleshout.com/       
  Last Date Modified : January 19, 2010

 ---------------------------------------------- */
 
/* ---------------------------------------------
   HTML ELEMENTS
----------------------------------------------- */ 

/* Top Elements */
* { margin: 0; padding: 0; outline: 0 }

body {
  background: #E2DDD9 url(HarvestField-images/bg.jpg) repeat-y center top;
  font: 70%/1.5em Verdana, Tahoma, arial, sans-serif;
  color: #6B4F2E; 
  text-align: center;    
}

/* links */
a, a:visited {  
  color: #BE420D;
  background: inherit;
  text-decoration: none;
}
a:hover {
  color: #88ac0b;
  background: inherit;
  text-decoration: underline;
}

/* headers */
h1, h2, h3 {
  font-family: 'Trebuchet MS', Tahoma, Sans-serif;
  font-weight: Bold;     
}
h1 {
  font-size: 240%;  
  padding: 15px 10px 5px 10px;
  letter-spacing: -1px;
}
h2 {
  font-size: 220%;
  color: #88ac0b;
  padding: 12px 10px 5px 10px;
}
h3 {
  font-size: 140%;  
  padding: 12px 10px 5px 10px;
}

p {
  padding: 10px;    
  margin: 0;
}
ul, ol {
  margin: 5px 20px;
  padding: 0 20px;
}
ul { list-style: none; }

/* images */
img {
  background: #FAFAFA;
    border: 1px solid #DCDCDC;
  padding: 8px;
}
img.float-right {
    margin: 5px 0px 10px 10px;  
}
img.float-left {
    margin: 5px 10px 10px 0px;
}

code {
    margin: 5px 0;
    padding: 10px;
    text-align: left;
    display: block;
    overflow: auto;  
    font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
    /* white-space: pre; */
    background: #F9F7DD;
  border: 1px solid #E0DBC9;  
}
acronym {
  cursor: help;
  border-bottom: 1px solid #777;
}
blockquote {
  margin: 10px;
   padding: 0 0 0 25px;  
   background: #F9F7DD;
  border: 1px solid #E0DBC9;
  font: bold 15px/1.5em 'Trebuchet MS', Tahoma, Sans-serif;
  color: #563E24;
}

/* start - table */
table {
  border-collapse: collapse;
  margin: 10px;  
}
th strong {
  color: #fff;
}
th {
  background: #93BC0C;
  height: 29px;
  padding-left: 12px;
  padding-right: 12px;
  color: #FFF;
  text-align: left;
  border-left: 1px solid #B6D59A;
  border-bottom: solid 2px #FFF;
}
tr {
  height: 30px;
}
td {
  padding-left: 11px;
  padding-right: 11px;
  border-left: 1px solid #E8E8E8;
  border-bottom: 1px solid #DFDFDF;
}
td.first,th.first {
  border-left: 0px;
}
tr.row-a {
  background: #F8F8F8;
}
tr.row-b {
  background: #EFEFEF;    
}
/* end - table */

/* form elements */
form {
  margin:10px; padding: 10px 8px;
  background: #F9F7DD;
  border: 1px solid #E0DBC9;   
}
label {
  display:block;
  font-weight:bold;
  margin:5px 0;
}
input, select, textarea {
  padding: 5px;
  font: normal 1em Verdana, Tahoma, sans-serif;
  color:#777;
  background: #fff;
  
    border-width: 1px;
    border-style: solid;
    border-color: #D4D4D4 #ebebeb #ebebeb #d4d4d4; 
}
textarea {
  width: 400px;
  height: 100px;
  display: block;  
}
input.button { 
  font: bold 12px Arial, Sans-serif; 
  height: 24px;
  margin: 0;
  padding: 2px 3px; 
  color: #FFF;
  background: #8EB50C;
  
  border-width: 1px;
    border-style: solid;
    border-color: #D3FFA8 #639632 #639632 #D3FFA8;
}

/* search form */
.searchform {
  background-color: transparent;
  border: none;  
  margin: 0; padding: 5px 0 10px 0;  
  width: 190px;  
}
.searchform p { margin: 0; padding: 0; }
.searchform input.textbox { 
  width: 120px;
  color: #777; 
  height: 18px;
  padding: 2px;  
  vertical-align: top;
}
.searchform input.button { 
  width: 60px;
  height: 24px;
  padding: 2px 5px;
  vertical-align: top;
}

/* ------------------------------------------
   LAYOUT
------------------------------------------- */ 
#wrap {
  position: relative;
  width: 830px;
  margin: 0 auto;
  text-align: left;
  border-right: 1px solid #FFF;
  border-left: 1px solid #FFF;
}
#content-wrap {
  position: relative;
  clear: both;
  float: left;  
  width: 830px;  
  padding: 0;   
  border-bottom: 2px solid #FFF;
  background: #F2EFBA url(HarvestField-images/contentbg.jpg) repeat-y center top;  
  display: inline;
}
#header {
  width: 830px;
  position: relative;
  height: 190px;
  background: #FFF url(HarvestField-images/headerbg.jpg) repeat-x;
  padding: 0;  
  color: #FFF;  
}
#header h1#logo-text a {
  position: absolute;
  margin: 0; padding: 0;
  font: bold 60px 'Trebuchet MS', Arial, Sans-serif;
  letter-spacing: -3px;
  color: #BE420D;
  text-decoration: none;
  
  /* change the values of top and left to adjust the position of the logo*/
  top: 50px; left: 20px;  
}
#header h1#logo-text span {  
  color: #6C4F2F;
}
#header p#slogan {
  position: absolute;
  margin: 0; padding: 0;
  font: bold 16px 'Trebuchet MS', Arial, Sans-serif;
  text-transform: none;
  color: #444;
  
  /* change the values of top and left to adjust the position of the slogan*/
  top: 115px; left: 95px;    
}

/* header links */
#header #header-links {
  position: absolute;
  top: 23px; right: 5px;  
  color: #34160B;
  font-family: 'Trebuchet MS', Tahoma, Sans-serif;
  font-size: 13px;  
  font-weight: bold;
}
#header #header-links a {  
  color: #5E2813;
  text-decoration: none;  
}
#header #header-links a:hover {
  color: #BE420D;  
}

/* Navigation */
#nav {
  position: relative;
  clear: both;  
  padding: 0;    
  width: 830px;
  margin: 0 auto;  
  background: url(HarvestField-images/menubg.jpg) repeat-x;
  height: 52px;
}
#nav #light-brown-line {
  position: absolute;
  background: url(HarvestField-images/light-brown-line.jpg) no-repeat;
  height: 10px; width: 240px;
  top: 0; left: 0;
}
#nav ul {
  position: absolute;
  list-style: none;
  text-transform: uppercase;
  padding: 0;  margin: 0;  
  right: 0; bottom: 0;
}
#nav ul li {
  display: inline;
  margin: 0; padding: 0;
}
#nav ul li a {
  display: block;
  float: left;
  width: auto;
  margin: 0;
  padding: 0 15px; 
  color: #FFF;
  font: bold 13px/52px "Century Gothic", "Trebuchet MS", Helvetica, Arial, Geneva, sans-serif;
  text-transform: uppercase;
  text-decoration: none;    
}
#nav ul li a:hover, 
#nav ul li a:active {
  background: url(HarvestField-images/menupointer.jpg) no-repeat center bottom;  
}
#nav ul li#current a {  
  background: url(HarvestField-images/menupointer.jpg) no-repeat center bottom;
  color: #F2EFBA;  
}

/* Main Column */
#main {
  float: right;
  width: 68%;
  padding: 0; margin: 10px 10px 0 0;
  display: inline;  
}
#main h2 {
  margin-top: 10px;
  font: bold 2.3em 'Trebuchet MS', Tahoma, Sans-serif;
  color: #8C9F0D; 
  letter-spacing: -1px;
  padding: 10px 0 0 8px;     
}
#main h2 a {
  color: #8C9F0D;
  text-decoration: none;    
}

#main ul li {
  list-style-image: url(HarvestField-images/bullet.gif);
}

/* Sidebar */  
#sidebar {
  float: left;
  width: 25.5%;
  padding: 0; 
  margin: 22px 0 0 15px;    
  display: inline; 
}  
#sidebar h3 {
  margin-top: 10px;
  padding: 5px; 
  font: normal 1.6em 'Trebuchet MS', Tahoma, Sans-serif;
  color: #674C2C;     
}
#sidebar ul.sidemenu {
  text-align: left;
  margin: 4px 4px 10px 0; padding: 0;
  text-decoration: none;    
  border-top: 1px solid #C39F73;
}
#sidebar ul.sidemenu li {
  list-style: none;
  background: url(HarvestField-images/dots.jpg) repeat-x left bottom;
  padding: 5px 0 5px 5px;
  margin: 0 2px;    
}
* html body #sidebar ul.sidemenu li {
  height: 1%;
}
#sidebar ul.sidemenu li a {
  text-decoration: none;  
  background-image: none;  
  color: #6B4F2E;    
}
#sidebar ul.sidemenu li a:hover {  
  color: #88ac0b;  
}
#sidebar ul.sidemenu ul { margin: 0 0 0 5px; padding: 0; }
#sidebar ul.sidemenu ul li { background: none; }

/* footer */
#column-wrap {
  clear: both;
  float: left;
  width: 830px;
  padding: 18px 0 50px 0;    
  background: #A0B70D url(HarvestField-images/footercolbg.jpg) repeat-x left bottom;    
  border-bottom: 2px solid #FFF;
}
#column-wrap a {
  text-decoration: none;
  color: #FFF;  
}
#column-wrap a:hover {
  color: #000;  
}
#column-wrap h3 {
  color: #FFF;  
  margin: 0 0 10px 0;  
  font-size: 160%;
  font-weight: normal;
  text-transform: uppercase;
}

#columns {
  color: #888;
  margin: 0 auto; 
  padding: 0;  
  width: 790px;    
  background: transparent;
}
#columns ul {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;  
  background: url(HarvestField-images/footer-dots.gif) repeat-x left top;  
}
#columns li {
  background: url(HarvestField-images/footer-dots.gif) repeat-x left bottom;    
}
#columns li a {
  display: block;
  font-weight: normal;
  padding: 6px 0 6px 10px;
  width: 96%;
}
#columns .col3, .col3-center {
  float: left;
  width: 32%;
}
#columns .col3-center { 
  margin: 0 15px; 
}

/* footer*/
#footer {
  clear: both;
  color: #FFF;  
  width: 830px;
  padding: 5px 0 15px 0;
  text-align: center;
}
#footer a {
  color: #F3EFBA;
    text-decoration: none;
}

/* Post Meta */
.post-meta {
  background: #F9F7DD;
  padding: 5px; margin: 5px 10px;  
  font-size: 95%;  
  border: 1px solid #E0DBC9;
}
.post-meta .date { margin: 0 10px 0 5px; }
.post-meta a.comments { margin: 0 10px 0 5px;  }
.post-meta a.readmore { margin: 0 10px 0 5px;  }

.post-info { font-size: .9em; padding: 0 10px 5px 10px; color: #BF9A6C;   }
.post-info a { color: #668208; }

/* alignment classes */
.float-left  { float: left; }
.float-right { float: right; }
.align-left  { text-align: left; }
.align-right { text-align: right; }

/* display and additional classes */
.clearer { clear: both; }
.clear {
  display:inline-block;
}
.clear:after {
  display:block; 
  visibility:hidden; 
  clear:both; 
  height:0; 
  content: "."; 
}

</style>



<title>HarvestField</title></head>

<body>
<!-- wrap starts here -->
<div id="wrap">

  <!--header -->
  <div id="header">      
        
    <h1 id="logo-text"><a href="index.html" title="">Harvest<span>field</span></a></h1>    
    <p id="slogan">put your site slogan here...</p>    
      
    <div id="header-links">
      <p>
        <a href="index.html">Home</a> | 
        <a href="index.html">Contact</a> | 
        <a href="index.html">Site Map</a>      
      </p>    
    </div>        
        
  <!--header ends-->          
  </div>
    
  <!-- navigation starts-->  
  <div  id="nav">
    
    <div id="light-brown-line"></div>  
    
    <ul>
      <li id="current"><a href="index.html">Home</a></li>
      <li><a href="index.html">Archives</a></li>
      <li><a href="index.html">Downloads</a></li>
      <li><a href="index.html">Services</a></li>
      <li><a href="index.html">Support</a></li>
      <li><a href="index.html">About</a></li>    
    </ul>
    
  <!-- navigation ends-->  
  </div>  
    
  <!-- content-wrap starts -->
  <div id="content-wrap">

    <div id="main">
        
      <a name="TemplateInfo"></a>
      <h2><a href="index.html">Template Info</a></h2>
      <p class="post-info">Posted by <a href="index.html">erwin</a> | Filed under <a href="index.html">templates</a>, <a href="index.html">internet</a> </p>
        
            <p><strong>HarvestField</strong> is a free, W3C-compliant, CSS-based website template
            by <a href="http://www.styleshout.com/">styleshout.com</a>. This work is
            distributed under the <a rel="license" href="http://creativecommons.org/licenses/by/2.5/">
            Creative Commons Attribution 2.5  License</a>, which means that you are free to
            use and modify it for any purpose. All I ask is that you give me credit by including a <strong>link back</strong> to
            <a href="http://www.styleshout.com/">my website</a>.
            </p>

            <p>
            You can find more of my free template designs at <a href="http://www.styleshout.com/">my website</a>.
            For premium commercial designs, you can check out
            <a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate.com</a>.
            </p>
        
      <p class="post-meta">    
      <a href="index.html" class="readmore">Read more</a> |
      <a href="index.html" class="comments">Comments (7)</a> |        
      <span class="date">June 30, 2007</span>  
      </p>
      
      <a name="SampleTags"></a>
      <h2><a href="index.html">Sample Tags</a></h2>
        
      <h3>Code</h3>        
      <p><code>
      code-sample { <br />
      font-weight: bold;<br />
      font-style: italic;<br />        
      }    
      </code></p>  
        
      <h3>Example Lists</h3>
      
      <ol>
        <li>Here is an example</li>
        <li>of an ordered list</li>                
      </ol>  
              
      <ul>
        <li>Here is an example</li>
        <li>of an unordered list</li>                
      </ul>        
        
      <h3>Blockquote</h3>      
      <blockquote><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy 
      nibh euismod tincidunt ut laoreet dolore magna aliquam erat....</p></blockquote>
        
      <h3>Image and text</h3>
      <p><a href="http://getfirefox.com/"><img src="images/firefox-gray.jpg" width="100" height="120" alt="firefox" class="float-left" /></a>
      Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. 
      Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu 
      posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum 
      odio, ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit, leo a pharetra 
      condimentum, lorem tellus eleifend magna, eget fringilla velit magna id neque. Curabitur vel urna. 
      In tristique orci porttitor ipsum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. 
      Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu 
      posuere nunc justo tempus leo.         
      </p>
        
      <h3>Table Styling</h3>              
      <table>
        <tr>
          <th class="first"><strong>post</strong> date</th>
          <th>title</th>
          <th>description</th>
        </tr>
        <tr class="row-a">
          <td class="first">04.18.2007</td>
          <td><a href="index.html">Augue non nibh</a></td>
          <td><a href="index.html">Lobortis commodo metus vestibulum</a></td>
        </tr>
        <tr class="row-b">
          <td class="first">04.18.2007</td>
          <td><a href="index.html">Fusce ut diam bibendum</a></td>
          <td><a href="index.html">Purus in eget odio in sapien</a></td>
        </tr>
        <tr class="row-a">
          <td class="first">04.18.2007</td>
          <td><a href="index.html">Maecenas et ipsum</a></td>
          <td><a href="index.html">Adipiscing blandit quisque eros</a></td>
        </tr>
        <tr class="row-b">
          <td class="first">04.18.2007</td>
          <td><a href="index.html">Sed vestibulum blandit</a></td>
          <td><a href="index.html">Cras lobortis commodo metus lorem</a></td>
        </tr>
      </table>
                
      <h3>Example Form</h3>
      <form action="#">      
      <p>      
      <label>Name</label>
      <input name="dname" value="Your Name" type="text" size="30" />
      <label>Email</label>
      <input name="demail" value="Your Email" type="text" size="30" />
      <label>Your Comments</label>
      <textarea rows="5" cols="5"></textarea>
      <br />  
      <input class="button" type="submit" />    
      </p>    
      </form>        
      <br />  
      
    <!-- main ends -->  
    </div>
    
    <div id="sidebar">
      
      <h3>Search Box</h3>  
      <form action="#" class="searchform">
        <p>
        <input name="search_query" class="textbox" type="text" />
          <input name="search" class="button" value="Search" type="submit" />
        </p>      
      </form>  
          
      <h3>Sidebar Menu</h3>
      <ul class="sidemenu">        
        <li><a href="index.html">Home</a></li>
        <li><a href="#TemplateInfo">Template Info</a></li>
        <li><a href="#SampleTags">Sample Tags</a></li>
        <li><a href="http://www.styleshout.com/">More Free Templates</a></li>  
        <li>
        <a href="http://www.buywebtemplates.net" title="Web Templates">Web Templates</a></li>
      </ul>  
        
      <h3>Links</h3>
      <ul class="sidemenu">
        <li><a href="http://www.pdphoto.org/">PDPhoto.org</a></li>
        <li><a href="http://www.squidfingers.com/patterns/">Squidfingers | Patterns</a></li>
        <li><a href="http://www.alistapart.com">Alistapart</a></li>          
        <li><a href="http://www.cssmania.com">CSS Mania</a></li>
      </ul>
      
      <h3>Sponsors</h3>
            <ul class="sidemenu">
                <li><a href="http://www.dreamtemplate.com" title="Website Templates">
                <strong>DreamTemplate</strong></a> <br /> Over 6,000+ Premium Web Templates</li>
                <li><a href="http://www.themelayouts.com" title="WordPress Themes">
                <strong>ThemeLayouts</strong></a> <br /> Premium WordPress &amp; Joomla Themes</li>
                <li><a href="http://www.imhosted.com" title="Website Hosting">
                <strong>ImHosted.com</strong></a> <br /> Affordable Web Hosting Provider</li>
                <li><a href="http://www.dreamstock.com" title="Stock Photos">
                <strong>Dreamstock</strong></a> <br /> Download Amazing Stock Photos</li>
                <li><a href="http://www.evrsoft.com" title="Website Builder">
                <strong>Evrsoft</strong></a> <br /> Website Builder Software &amp; Tools</li>
                <li><a href="http://www.ehostinfo.com/" title="Web Hosting">
                <strong>Web Hosting</strong></a> <br /> Top 10 Hosting Reviews</li>
            </ul>
        
      <h3>Wise Words</h3>
      <p>&quot;Every adversity, every failure, every heartache 
      carries with it the seed on an equal or greater benefit.&quot; </p>
          
      <p class="align-right">- Napoleon Hill</p>
          
      <h3>Support Styleshout</h3>
      <p>If you are interested in supporting my work and would like to contribute, you are
      welcome to make a small donation through the 
      <a href="http://www.styleshout.com/">donate link</a> on my website - it will 
      be a great help and will surely be appreciated.</p>      
            
    <!-- sidebar ends -->    
    </div>
    
  <!-- content-wrap ends-->  
  </div>
  
  <!-- column starts -->    
  <div id="column-wrap">
    
    <div id="columns">
  
      <div class="col3">
        <h3>Tincidunt</h3>
        <ul>
          <li><a href="index.html">consequat molestie</a></li>
          <li><a href="index.html">sem justo</a></li>
          <li><a href="index.html">semper</a></li>
          <li><a href="index.html">magna sed purus</a></li>
          <li><a href="index.html">tincidunt</a></li>
        </ul>
      </div>

      <div class="col3-center">
        <h3>Sed purus</h3>
        <ul>
          <li><a href="index.html">consequat molestie</a></li>
          <li><a href="index.html">sem justo</a></li>
          <li><a href="index.html">semper</a></li>
          <li><a href="index.html">magna sed purus</a></li>
          <li><a href="index.html">tincidunt</a></li>
        </ul>
      </div>

      <div class="col3">
        <h3>Praesent</h3>
        <ul>
          <li><a href="index.html">consequat molestie</a></li>
          <li><a href="index.html">sem justo</a></li>
          <li><a href="index.html">semper</a></li>
          <li><a href="index.html">magna sed purus</a></li>
          <li><a href="index.html">tincidunt</a></li>          
        </ul>
      </div>
    <!-- footer-columns ends -->

    </div>  
    
  <!-- column-wrap ends-->
  </div>
  
  <!-- footer starts -->
  <div id="footer">    
      
    <p>
        &copy; 2010 <strong>Your Company</strong>

            &nbsp;&nbsp;&nbsp;&nbsp;

        Design by <a href="http://www.styleshout.com/">styleshout</a>

            | <a href="http://www.ehostinfo.com/">Web Hosting</a>

            &nbsp;&nbsp;&nbsp;&nbsp;

        <a href="index.html">Home</a> |
             <a href="index.html">Sitemap</a> |
          <a href="index.html">RSS Feed</a> |
            <a href="http://validator.w3.org/check?uri=referer">XHTML</a> |
        <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
         </p>

  <!-- footer ends -->    
  </div>  

<!-- wrap ends here -->
</div>

</body>
</html>

   
    
  








Related examples in the same category

1.2 column with left content floats left
2.Two columns with a footer
3.Head and footer with two columns in between
4.Header bar, two columns, menu on the right
5.2-column Layout with total width 922px, and float right
6.2-column with total width 922 px and left column 678 px, float right
7.2-column with total width 922px, left width 200px, float right
8.2-column layout with margin in between
9.2-column, with float left and right, left 678px width
10.2-column with relative positioned right column
11.Two column: content and right bar
12.Two column with negative margin
13.Floated Two Column Layout
14.Two columns with separator
15.Two columns with background
16.Two columns with width: 50%
17.Two columns with header banner
18.Two row layout: one floats left, one floats right
19.Header and sub header with two columns and footer
20.float left and right with other content
21.Two columns with header and footer
22.Two columns
23.Master header and two columns
24.Floated Two-Column Layout 2
25.Header and two-column layout
26.Two Column Layout in HTML with table
27.Two Columns Layout Using CSS
28.Two column layout with red theme
29.Two column layout template to illustrate all
30.Two column layout to illustrate all
31.Two column layout template 3
32.Two column with text header
33.Two-column with sidebar layout
34.Two-column layout with header and footer
35.Two even columns