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






Two column layout template 3

  

<!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>

<title>Refresh</title>

<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />

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

   AUTHOR           :   Erwin Aligam
   WEBSITE          :   http://www.styleshout.com/
   TEMPLATE NAME    :  Refresh
   TEMPLATE CODE    :   S-0002
   VERSION          :   1.1
   LAST DATE MOD    :   January 21, 2010

---------------------------------------------------- */

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

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

body {
  background: #CCCCCC;
  font: 12px/160% 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color: #555;
  text-align: center;
}

/* links */
a:link, a:visited {
  text-decoration: none;
  color: #4F82CB; 
  background: inherit;
}
a:hover {
  color: #4EBF37;
  background: inherit;
}

/* headers */
h1, h2, h3 {
  font-family: Tahoma, Verdana, 'Trebuchet MS', Sans-serif;
  font-weight: Bold;     
}
h1 {
  font-size: 120%;  
}
h2 {
  font-size: 110%;
  text-transform: uppercase;
  color: #88ac0b;
}
h3 {
  font-size: 110%;
  color: #666666; 
}

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

h1, h2, h3, p {
  padding: 10px;    
  margin: 0;
}
ul, ol {
  margin: 5px 20px;
  padding: 0 20px;
  color: #88ac0b;  
}
ul span, ol span {
  color: #666666;
}

code {
  margin: 5px 0;
  padding: 15px;
  text-align: left;
  display: block;
  overflow: auto;  
  font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
  /* white-space: pre; */
  background: #FAFAFA;
  border: 1px solid #f2f2f2;  
}
acronym {
  cursor: help;
  border-bottom: 1px solid #777;
}
blockquote {
  margin: 10px;
   padding: 10px 10px 10px 28px;
    border: 1px solid #f2f2f2;
    background: #FAFAFA url(Refresh-images/quote.gif) no-repeat 5px 10px;
}

/* form elements */
form {
  margin:10px; padding: 5px 10px;
  border: 1px solid #f2f2f2; 
  background-color: #FAFAFA; 
}
label {
  display:block;
  font-weight:bold;
  margin:5px 0;
}
input {
  padding:4px 5px;
  border:1px solid #eee;
  font: normal 1em 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color:#777;
}
textarea {
  width:400px;
  padding: 4px 5px;
  font: normal 1em 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  border:1px solid #eee;
  height:100px;
  display:block;
  color:#777;
}
input.button { 
  margin: 0; 
  font: bolder 12px Arial, Sans-serif; 
  border: 1px solid #CCC; 
  padding: 5px;
  background: #FFF;
  color: #88ac0b;
}

/* search */
form.search {
  position: absolute;
  top: 35px; right: 25px;
  background: transparent;
  border: none;  
}  
form.search input.textbox {
  margin: 0; padding: 1px 2px;
  width: 120px;
  background: #FFF;
  color: #333; 
}
form.search input.button {
  background: #CCC url(Refresh-images/headerbg.gif) repeat-x;
  color: #333;
  border: none;
    padding: 2px 5px;
  width: 70px; height: 21px;
}

/* ----------------------------------------------
   LAYOUT
------------------------------------------------- */
#wrap {
  width: 820px;
  background: #CCC url(Refresh-images/content.jpg) repeat-y center top;
  margin: 0 auto;
  text-align: left;
}
#content-wrap {
  clear: both;
  width: 760px;
  padding: 0; 
  margin: 0 auto;
}
#header {
  width: 820px;
  position: relative;
  height: 106px;
  background: #CCC url(Refresh-images/header.jpg) no-repeat center top;
  padding: 0;
  font-size: 14px;
  color: #FFF;
}
#header h1#logo-text {
  position: absolute;
  margin: 0; padding: 0;
  font: bolder 3.3em 'Trebuchet MS', Arial, Sans-serif;
  letter-spacing: -2px;
  color: #FFF;
  text-transform: none;
  
  /* change the values of top and left to adjust the position of the logo*/
  top: 28px; left: 50px;  
}
#header h2#slogan {
  position: absolute;
  margin: 0; padding: 0;
  font: normal .8em 'Trebuchet MS', Arial, Sans-serif;
  text-transform: none;
  color: #FFF;
  
  /* change the values of top and left to adjust the position of the slogan*/
  top: 74px; left: 58px;    
}
/* Menu */
#menu {
  clear: both;  
  margin: 0; padding: 0 40px 0 0;
  background: url(Refresh-images/menu.jpg) repeat-y center top;  
  font: bold 12px/28px 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  height: 28px;
}
#menu ul {
  float: right;
  list-style: none;
  margin:0; padding: 0;
}
#menu ul li {
  display: inline;
}
#menu ul li a {
  display: block;
  float: left;
  padding: 0 10px;
  color: #FFF;  
  text-decoration: none;
}
#menu ul li a:hover {
  background-color: #ECECEC;
  color: #333;  
}
#menu ul li#current a {  
  background-color: #FFF;
  color: #333;
}

/* Main Column */
#main {
  float: right;
  width: 72%;
  padding: 0; margin: 10px 0 0 0;
}
#main h1 {
  margin-top: 10px;
    margin-right: 8px;
  font: Bold 125% Verdana, 'Trebuchet MS', Sans-serif;
  color: #88ac0b;
  padding: 5px 0 5px 25px;   
  border-bottom: 1px solid #EFF0F1;
  background: #FFF url(Refresh-images/square-green.png) no-repeat 3px 50%;  
}

.post-footer {
  background-color: #FAFAFA;
  padding: 5px; margin: 20px 10px 0 10px;
  border: 1px solid #f2f2f2;
  font-size: .9em;
}
.post-footer .date {
  background: url(Refresh-images/clock.gif) no-repeat left center;
  padding-left: 20px; margin: 0 10px 0 5px;
}
.post-footer .comments {
  background: url(Refresh-images/comment.gif) no-repeat left center;
  padding-left: 20px; margin: 0 10px 0 5px;
}
.post-footer .readmore {
  background: url(Refresh-images/page.gif) no-repeat left center;
  padding-left: 20px; margin: 0 10px 0 5px;
}

/* Sidebar */  
#sidebar {
  float: left;
  width: 26.5%;
  padding: 0; margin: 10px 0 0 0;
}  
#sidebar h1 {
  margin-top: 10px;
  padding: 5px 0 5px 10px; 
  font: bold 1.1em Verdana, 'Trebuchet MS', Sans-serif;
  color: #555;
  background: #EEF0F1 url(Refresh-images/headerbg.gif) repeat-x left bottom;  
  border: 1px solid #EFF0F1;
}
#sidebar .left-box {
  border: 1px solid #EFF0F1; 
  margin: 0 0 5px 0;
}
#sidebar .left-box p {
  margin: 5px;
}

#sidebar ul.sidemenu {
  list-style: none;
  text-align: left;
  margin: 3px 0 8px 0; padding: 0;
  text-decoration: none;
    font-size: .9em;
}
#sidebar ul.sidemenu li {
  border-bottom: 1px solid #EFF0F1;
  background: url(Refresh-images/go.gif) no-repeat 5px 7px;
  padding: 3px 0 3px 25px;
  margin: 0 2px;  
}
#sidebar ul.sidemenu a {
  font-weight: bolder;
  text-decoration: none;  
  background-image: none;  
}

/* Footer */  
#footer {
  color: #666666;
  background: #CCC url(Refresh-images/footer.jpg) no-repeat center top;
  clear: both;
  width: 820px;
  height: 55px;
  text-align: center;  
  font-size: .9em;
}
#footer a { text-decoration: none; }

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

/* display and additional classes */
.clear { clear: both; }
.gray { color: #CCC; }

</style>



</head>

<body>
<!-- wrap starts here -->
<div id="wrap">
    
    <!--header -->
    <div id="header">      
        
      <h1 id="logo-text">re<span class="gray">fresh</span></h1>    
      <h2 id="slogan">put your site slogan here...</h2>
        
      <form class="search" method="post" action="#">
        <p>
          <input class="textbox" type="text" name="search_query" value="" />
         <input class="button" type="submit" name="Submit" value="Search" />
        </p>
      </form>      
        
    </div>
    
    <!-- menu -->  
    <div  id="menu">
      <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>
    </div>          
      
    <!-- content-wrap starts here -->
    <div id="content-wrap">
        
      <div id="main">
        
        <a name="TemplateInfo"></a>
        <h1>Template Info</h1>
        
                <p><strong>Refresh</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-footer">
          <a href="index.html" class="readmore">Read more</a>
          <a href="index.html" class="comments">Comments (7)</a>
          <span class="date">Oct 01, 2006</span>  
        </p>
      
        <a name="SampleTags"></a>
        <h1>Sample Tags</h1>
        
        <h3>Code</h3>        
        <p><code>
        code-sample { <br />
        font-weight: bold;<br />
        font-style: italic;<br />        
        }    
        </code></p>  
        
        <h3>Example Lists</h3>
      
        <ol>
          <li><span>example of ordered list</span></li>
          <li><span>uses span to color the numbers</span></li>                
        </ol>  
              
        <ul>
          <li><span>example of unordered list</span></li>
          <li><span>uses span to color the bullets</span></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. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar 
        ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit lectus eu est.         
        </p>
                
        <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 />  

      </div>

            <div id="sidebar">

        <h1>Sidebar Menu</h1>
        <div class="left-box">
          <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>
        </div>

        <h1>Site Partners</h1>
        <div class="left-box">
          <ul class="sidemenu">
                        <li><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li>
                        <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li>
                        <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li>
                        <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li>
                        <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li>
                        <li>
            <a href="http://www.ehostinfo.com/" title="Web Hosting">Web Hosting</a></li>
            </ul>
        </div>

        <h1>Wise Words</h1>
        <div class="left-box">
          <p>&quot;To be concious that you are ignorant of the
          facts is a great step to knowledge&quot; </p>

          <p class="align-right">- Benjamin Disraeli</p>
        </div>

        <h1>Support Styleshout</h1>
        <div class="left-box">
          <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>
        </div>


      </div>
    
    <!-- content-wrap ends here -->  
    </div>
          
    <!--footer starts here-->
    <div id="footer">
      
      <p>
          &copy; 2010 Your Company |
          Design by <a href="http://www.styleshout.com/">styleshout</a>

                | <a href="http://www.cssportal.com/">CSS Portal</a>

                &nbsp;&nbsp;&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>
        
    </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 2
32.Two column with text header
33.Two-column with sidebar layout
34.Two-column layout with header and footer
35.Two even columns