Banner with tab like menu bar : Banner « CSS Controls « HTML / CSS






Banner with tab like menu bar

  
<!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>Techmania</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    :   Techmania 1.0
   TEMPLATE CODE    :   S-0003
   VERSION          :   1.2
   LAST DATE MOD    :   January 21, 2010

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

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

body {
    font: 12px/170% 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif;
  background-color: #3A3A3A;
   color: #555; 
   text-align: center;
   margin: 15px 0;
}  

/* links */
a:link, a:visited {
  color: #72A545;
  background: inherit;
  text-decoration: none;
}
a:hover { 
  color: #006699;
  background: inherit;    
}
 
/* headers */
h1, h2, h3 {
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif;
  font-weight: bold;
}
h1 {
  font-size: 1.4em;
}
h2 {
  font-size: 1.3em;
  color: #339900;
}
h3 {
  font-size: 1.2em;
  color: #333;
  letter-spacing: -0.5px;
}

h1, h2, h3, p { 
  padding: 0;
  margin: 15px 20px;
}

ul, ol {
  margin: 10px 30px;
  padding: 0 15px;  
  color: #72A545;  
}
ul span, ol span {
  color: #666666;
}

/* 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 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 #EAEAEA;
  border-left: 5px solid #72A545;
}
acronym {
  cursor: help;
  border-bottom: 1px solid #777;
}
blockquote {
  margin: 15px;
   padding: 7px 10px 7px 32px;
    background: #FAFAFA url(Techmania-images/quote.gif) no-repeat 8px 10px !important;
  background-position: 10px 10px;
  border: 1px solid #EAEAEA; 
  border-left: 5px solid #72A545;  
  font-weight: bold;
    font-size: 1.1em;
}

/* form elements */
form {
  margin:10px 15px;
    padding: 10px 5px;
  border: 1px solid #EAEAEA; 
  background-color: #FAFAFA; 
}
label {
  display:block;
  font-weight:bold;
  margin:5px 0;
}
input {
  padding: 4px 5px;
  border:1px solid #eee;
  font-size: 1em;
  color:#777;
}
textarea {
  width:400px;
  padding:4px 5px;
  font-size: 1em;
  border:1px solid #eee;
  height:100px;
  display:block;
  color:#777;
}
input.button { 
  margin: 0; 
  font: bolder 12px Arial, Sans-serif; 
  border: 1px solid #EAEAEA;
  padding: 5px;
  background: #CCC url(Techmania-images/buttonbg.gif) repeat-x left bottom; 
  color: #333;/* color: #339900; */
}

/* search */
#sidebar #search {
  background: #f2f2f2;
  margin: 0 10px;
  padding: 5px 0;
}
#sidebar #search p {
  padding: 0;
}
#sidebar #search img {
  vertical-align: bottom;
}
#sidebar #search .textbox {
  background: #FFF url(Techmania-images/input.png) no-repeat top left; 
  border: 1px solid #EAEAEA;
  font-size: 11px;
  padding: 3px;  
  width: 110px;
}
#sidebar #search input.searchbutton { 
  margin: 0; 
  font: bold 100% Arial, Sans-serif;
  border: 1px solid #CCC; 
  background: #CCC url(Techmania-images/buttonbg.gif) repeat-x left bottom; 
  padding: 1px; 
  height: 25px;
  color: #333;  
  width: 55px;
}

/* -------------------------------------------------------
      LAYOUT 
---------------------------------------------------------- */
#wrap {
   margin: 0 auto ;
   padding:0;  
   text-align: left;
   background-color:#FFF;
   width: 790px;    
}
#content-wrap {
  clear:both;
   margin:0; padding:0;
  width: 790px;    
}

/* header */
#header {
  position: relative;
    clear:left;
    width: 790px;
  height: 135px; 
  margin: 0; padding: 0;
  background: #000 url(Techmania-images/headerbg.jpg) no-repeat left bottom;      
}
#header h1#logo-text {
  position: absolute;
  margin: 0; padding: 0;
  font: bolder 4.1em 'Trebuchet MS', Arial, Sans-serif;
  letter-spacing: -2px;
  color: #FFF;
  text-transform: none;
  
  /* change the values of top and right to adjust the position of the logo*/
  top: 36px; right: 35px;  
}
#header h2#slogan {
  position: absolute;
  margin: 0; padding: 0;
  font: bold 1em 'Trebuchet MS', Arial, Sans-serif;
  text-transform: none;
  letter-spacing: 1px;
  color: #FFF;
  
  /* change the values of top and right to adjust the position of the slogan*/
  top: 85px; right:35px;    
}

/* menu tabs */
#header #header-tabs {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 25px;
  background: #000;
    font: bold 1em 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif;
} 
#header-tabs ul {    
  margin:0;
   padding:2px 0px 0px 7px;
   list-style:none;
}
#header-tabs li {
  display:inline;
   margin:0;
   padding:0;
}
#header-tabs a {
  float:left;
   background: url(Techmania-images/tableft.gif) no-repeat left top;
   margin:0;
   padding:0 0 0 4px;
   text-decoration:none;
}
#header-tabs a span {
  float:left;
   display:block;
   background: url(Techmania-images/tabright.gif) no-repeat right top;
   padding:7px 15px 4px 8px;
   color: #CCC;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#header-tabs a span {float:none;}
/* End IE5-Mac hack */
#header-tabs a:hover span {
  color:#FFF;
}
#header-tabs a:hover {
  background-position:0% -42px;
}
#header-tabs a:hover span { background-position: 100% -42px;}
#header-tabs #current a { background-position:0% -42px; }
#header-tabs #current a span { background-position:100% -42px; color: #FFF;}

/* main content */
#main {
  float: left;
  width: 530px;
  margin: 15px 0 10px 5px; padding: 0;
  background-color: inherit;
    display: inline;
}
#main h1 {
  padding: 8px 0 8px 25px;
    margin: 10px 15px;
    letter-spacing: .5px;
  text-transform: none;
  background: url(Techmania-images/square_arrow.gif) no-repeat 0% .6em;
  border-bottom: 2px solid #f2f2f2;  
  color: #339900;   
}  

/* sidebar */
#sidebar {
  float: right;
  width: 245px;
  margin: 15px 5px 10px 0; padding: 0;
  background-color: inherit;
    display: inline;
}
#sidebar h1 {
  padding: 8px 0px 3px 25px;
    margin: 10px 15px;
    letter-spacing: .5px;
  background: url(Techmania-images/square_arrow.gif) no-repeat 0% .6em;
  text-transform: none;  
  color: #339900;
}

#sidebar ul.sidemenu {
  list-style:none;
  margin:10px 15px;
  padding:0;
    font-size: .9em;
}
#sidebar ul.sidemenu li {
  margin-bottom:1px;
  border: 1px solid #f2f2f2;
}
#sidebar ul.sidemenu a {
  display: block;
  font-weight: bold;
  color: #555;
  text-decoration:none;  
  padding: 3px 5px 3px 10px;
  background: #f2f2f2;
  border-left: 5px solid #CCC;  
  
  min-height: 18px;  
}

* html body #sidebar ul.sidemenu a { height: 18px; }

#sidebar ul.sidemenu a:hover {
  padding:3px 5px 3px 10px;
  background: #f2f2f2;
  color: #339900;
  border-left:5px solid #72A545;
}


/* footer */
#footer { 
  clear: both;
  height: 50px;
  color: #CCC;
  background: #000;
  margin: 0;  
  font-size: .9em;
}
#footer a { 
  text-decoration: none; 
     color: #FFF;
}
#footer #footer-left {
  width: 50%;
  float: left;
  margin: 0; padding: 10px 0 10px 15px;
}
#footer #footer-right {
  width: 40%;
  float: right;
  margin: 0; padding: 10px 15px 10px 0;
    text-align: right;
}

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

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

.comments { 
  color: #333; 
  background: #FAFAFA;
    border: 1px solid #EAEAEA;
  padding: 5px 10px;
  margin-top: 20px;
    font-size: .9em;
}
</style>



</head>

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

    <div id="header">
    
      <h1 id="logo-text">tech<span class="gray">mania</span></h1>      
      <h2 id="slogan">put your site slogan here...</h2>  
          
      <div id="header-tabs">
        <ul>
          <li id="current"><a href="index.html"><span>Home</span></a></li>
          <li><a href="index.html"><span>Archives</span></a></li>
          <li><a href="index.html"><span>Downloads</span></a></li>
          <li><a href="index.html"><span>Services</span></a></li>
          <li><a href="index.html"><span>Support</span></a></li>
          <li><a href="index.html"><span>About</span></a></li>      
        </ul>
      </div>        
      
    </div>
    
    <!-- content-wrap starts here -->
    <div id="content-wrap">
    
        <div id="main"> 
  
        <a name="TemplateInfo"></a>
        <h1>Template Info</h1>
        
                <p><strong>Techmania</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="comments">
          <a href="index.html">Read more</a> |
          <a href="index.html">Comments(7)</a> |
          Oct 08, 2006
        </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>        
        <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>
        
        <h1>Site Partners</h1>        
        <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>  
        
        <h1>Search</h1>  
        <form method="post" id="search" action="#">
          <p>
          <input name="search_query" class="textbox" type="text" /> 
          <input name="search" class="searchbutton" value="Search" type="submit" />
          </p>
        </form>  
                  
        <h1>Wise Words</h1>
        <p>&quot;Criticism is something you can avoid easily by saying nothing,
        doing nothing, and being nothing&quot;</p>  
        
        <p class="align-right">- Aristotle</p>
        
        <h1>Support Styleshout</h1>
        <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>  
    
    <!-- content-wrap ends here -->
    </div>
    
    <div id="footer">
    
      <p id="footer-left">
        &copy; 2010 Your Company |
        Design by <a href="http://www.styleshout.com/">styleshout</a>
        | <a href="http://www.cssportal.com/">CSS Portal </a>
      </p>
      
      <p id="footer-right">
        <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.Two column with banner and top menu
2.Banner with search box
3.Huge banner
4.Split the banner with link list
5.Binder like banner
6.Large banner image
7.Banner header