Shading sidebar title : Siderbar « CSS Controls « HTML / CSS






Shading sidebar title

  
<!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">
<head>
<title>Artificial</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<style rel="stylesheet" type="text/css">
/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

body {
  margin: 0;
  padding: 0;
  background: #000000 url(artificial-images/img01.gif) repeat-x;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #808080;
}

form {
  margin: 0;
  padding: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

input, textarea, select {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

h1, h2, h3 {
  text-transform: lowercase;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-weight: normal;
  color: #E6E6E6;
}

h1 {
  letter-spacing: -1px;
  font-size: 2.4em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.2em;
  font-weight: bold;
}

p, ul, ol {
  margin-bottom: 1.6em;
  line-height: 180%;
}

p {
}

blockquote {
  font-style: italic;
}

ul {
}

ol {
}

a {
  color: #FA9C39;
}

a:hover {
  text-decoration: none;
}

small {
}

hr {
  display: none;
}

img {
  border: none;
}

img.left {
  float: left;
  margin: 0 15px 0 0;
}

img.right {
  float: left;
  margin: 0 0 0 15px;
}

/* Header */

#feeds {
  width: 980px;
  height: 28px;
  margin: 0 auto;
  padding-top: 12px;
  text-align: right;
}

#feeds b {
  display: none;
}

#feeds a {
  padding: 0 21px;
  background: url(artificial-images/img02.gif) no-repeat left center;
  text-decoration: none;
  font-weight: bold;
  color: #FFFFFF;
}

#feeds a:hover {
  text-decoration: underline;
}

#logo {
  width: 980px;
  height: 100px;
  margin: 0 auto;
  padding: 60px 0 0 0;
}

#logo h1, #logo p {
  margin: 0;
  float: left;
  color: #FFFFFF;
}

#logo h1 {
  padding-left: 40px;
  background: url(artificial-images/img03.gif) no-repeat left center;
  font-size: 4em;
}

#logo p {
  padding: 3px 0 0 5px;
  font-size: 1.4em;
}

#logo a {
  text-decoration: none;
  text-transform: lowercase;
  color: #FFFFFF;
}

/* Menu */

#menu {
  width: 980px;
  height: 60px;
  margin: 0 auto;
}

#menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu li {
  display: inline;
}

#menu a {
  display: block;
  float: left;
  height: 43px;
  padding: 17px 30px 0 30px;
  background: url(artificial-images/img04.gif) no-repeat;
  text-transform: lowercase;
  text-decoration: none;
  font-size: 1.8em;
  color: #5B6371;
}

#menu a:hover {
  color: #000000;
}

#menu .active a {
  background-color: #738197;
  color: #FFFFFF;
}

/* Page */

#page {
  width: 980px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Content */

#content {
  float: left;
  width: 660px;
  padding-top: 8px;
}

.post {
  text-align: justify;
}

.post .title {
  margin: 0;
  border-bottom: 1px solid #1A1A1A;
}

.post .meta {
  margin: 0;
  padding-left: 6px;
  background: url(artificial-images/img05.gif) no-repeat left center;
  color: #404040;
}

.post .meta a {
  color: #404040;
}

.post .entry {
  padding: 20px;
}

.post .more {
  text-align: right;
}

.post .more a {
  padding-left: 15px;
  background: url(artificial-images/img06.gif) no-repeat left center;
  text-decoration: none;
  font-weight: bold;
}

.post .more a:hover {
  text-decoration: underline;
}

.vline {
  border-bottom: 1px solid #1A1A1A;
}

/* Sidebar */

#sidebar {
  float: right;
  width: 280px;
}

#sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#sidebar li {
  margin-bottom: 20px;
  background: #1A1A1A;
  border: 5px solid #050505;
}

#sidebar li ul {
  padding: 20px;
}

#sidebar li li {
  margin: 0;
  background: none;
  border: none;
}

#sidebar li li a {
  padding-left: 15px;
  background: url(artificial-images/img08.gif) no-repeat left center;
  text-decoration: none;
}

#sidebar li li a:hover {
  text-decoration: underline;
}

#sidebar h2 {
  height: 40px;
  margin: 0;
  padding: 10px 0 0 10px;
  background: #BAD08B url(artificial-images/img07.gif) repeat-x;
  letter-spacing: -1px;
  font-size: 1.8em;
  color: #000000;
}

/* Search */

#search form {
  padding: 20px;
}

/* Footer */

#footer {
  clear: both;
  height: 100px;
  padding: 20px;
  background: #1A1A1A;
  border-top: 10px solid #050505;
}

#footer p {
  margin: 0;
  text-align: center;
  color: #444444;
}

#footer a {
  color: #444444;
}

</style>
</head>
<body>
<div id="feeds"><a href="" id="entries-rss">Entries (RSS)</a> <b>&nbsp;|&nbsp;</b> <a href="" id="comments-rss">Comments (RSS)</a></div>
<hr />
<div id="logo">
  <h1><a href="">Artificial</a></h1>
  <p><a href="">Free CSS Template</a></p>
</div>
<hr />
<!-- start menu -->
<div id="menu">
  <ul>
    <li class="active"><a href="">Home</a></li>
    <li><a href="">Blogs</a></li>
    <li><a href="">Photos</a></li>
    <li><a href="">About</a></li>
    <li><a href="">Contact</a></li>
  </ul>
</div>
<div id="page">
  <div id="content">
    <div class="post">
      <h1 class="title">Welcome to Our Website!</h1>
      <p class="meta"><small>Posted by <a href="">Admin</a> on August 8th, 2007 <b>&nbsp;|&nbsp;</b> <a href="">Comments (12)</a></small></p>
      <div class="entry">
        <p>This is <strong>Artificial</strong>, a free, fully standards-compliant CSS template designed by Free CSS Templates. This free template is released under a <a target="_blank" href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attributions 2.5</a> license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :)</p>
        <p>This template is also available as a WordPress theme at Free WordPress Themes.</p>
        <p class="more"><a href="">Read full post&hellip;</a></p>
      </div>
    </div>
    <div class="post">
      <h2 class="title">Common Tags Example</h2>
      <p class="meta"><small>Posted by <a href="">Admin</a> on August 8th, 2007 <b>&nbsp;|&nbsp;</b> <a href="">Comments (12)</a></small></p>
      <div class="entry">
        <p>This is a paragraph enclosed in <code>&lt;p&gt;&lt;/p&gt;</code> HTML tags. Other text manipulation tags will look like these:</p>
        <ul>
          <li><strong>bold</strong> is enclosed with <code>&lt;strong&gt;&lt;/strong&gt;</code> tags</li>
          <li><em>italic</em> is enclosed with <code>&lt;em&gt;&lt;/em&gt;</code> tags</li>
          <li><em><strong>bold italic</strong></em> is enclosed with <code>&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;</code> tags</li>
          <li><code>code</code> is enclosed with <code>&lt;code&gt;&lt;/code&gt;</code> tags</li>
        </ul>
        <p class="more"><a href="">Read full post&hellip;</a></p>
      </div>
    </div>
    <div class="post">
      <h2 class="title">Sample Blockquotes</h2>
      <p class="meta"><small>Posted by <a href="">Admin</a> on August 8th, 2007 <b>&nbsp;|&nbsp;</b> <a href="">Comments (12)</a></small></p>
      <div class="entry">
        <p>The most common <em>lorem ipsum</em> text reads as follows:</p>
        <blockquote>
          <p>&#8220;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do  eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad  minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip  ex ea commodo consequat. Duis aute irure dolor in reprehenderit in  voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur  sint occaecat cupidatat non proident, sunt in culpa qui officia  deserunt mollit anim id est laborum.&#8221;</p>
        </blockquote>
        <p class="more"><a href="">Read full post&hellip;</a></p>
      </div>
    </div>
  </div>
  <div id="sidebar">
    <ul>
      <li id="search">
        <h2>Search</h2>
        <form method="get" action="">
          <fieldset>
          <input type="text" id="s" name="s" value="" />
          <input type="submit" id="x" value="Search" />
          </fieldset>
        </form>
      </li>
      <li>
        <h2>Lorem Ipsum</h2>
        <ul>
          <li><a href="">Fusce dui neque fringilla</a></li>
          <li><a href="">Eget tempor eget nonummy</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
          <li><a href="">Eget tempor eget nonummy</a></li>
        </ul>
      </li>
      <li>
        <h2>Volutpat Dolore</h2>
        <ul>
          <li><a href="">Eget tempor eget nonummy</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Fusce dui neque fringilla</a></li>
        </ul>
      </li>
      <li>
        <h2>Magna Bibendum</h2>
        <ul>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
          <li><a href="">Eget tempor eget nonummy</a></li>
          <li><a href="">Nec metus sed donec</a></li>
          <li><a href="">Magna lacus bibendum mauris</a></li>
          <li><a href="">Velit semper nisi molestie</a></li>
        </ul>
      </li>
    </ul>
  </div>
  <div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
  <p id="legal">&copy;2007 All Rights Reserved. Designed by <a target="_blank" href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
  <p id="links"><a href="">Privacy</a> | <a href="">Terms</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer"><abbr title="Cascading Style Sheets">CSS</abbr></a></p>
</div>
</body>
</html>

   
    
  








Related examples in the same category

1.siderbar float right
2.Content floats left, side bar floats right
3.Sidebar with absolute position
4.Inner left and right bar
5.Sidebar with float left
6.Side bar contains list
7.side bar 2
8.Link bar with dotted line
9.Latest news sidebar
10.Sidebar with link and text
11.Sidebar with read more link
12.Text paragraph with sidebar
13.Sidebar with border
14.Div Sidebar padding: 0 38px 45px 29px;
15.Div Sidebar width: 328px;
16.Div Sidebar float: left;
17.Div based sidebar
18.Sidebar column
19.Sidebar with read more link 3
20.Layout for sidebar and article
21.Navigation sidebar
22.Two columns with sidebar
23.position: absolute; Sidebar
24.Sidebar Link list
25.Sidebar with right border
26.Links inside sidebar
27.Sidebar title
28.Sidebar with read more
29.Sidebar with around corner
30.Login form inside sidebar
31.Using border to add boundary to the sidebar item
32.Sidebar with two columns
33.With link sidebar on both sides
34.Site news inside sidebar
35.Sidebar floating right
36.Sidebar Links with mouse hover effect
37.Using H4 as the sidebar section title
38.Sidebar li a:hover background:#94CC29;
39.Link side bar
40.Two column links and text
41.Two column right link bar