Sidebar with read more link : Siderbar « CSS Controls « HTML / CSS






Sidebar with read more link

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

Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Title      : Puzzled
Version    : 1.0
Released   : 20080706
Description: A wide two-column design suitable for blogs and small websites.

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Puzzled by Free Css Templates</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<style 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: #FFFFFF url(Puzzled-images/img01.jpg) repeat-x left top;
  text-align: justify;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #404040;
}

form {
  margin: 0;
  padding: 0;
}

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

input, textarea, select {
  font: normal 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
}


h1, h2, h3 {
  font-weight: normal;
  color: #212121;
}

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

h2 {
  font-size: 1.4em;
}

h3 {
  font-size: 1.2em;
}

p, ul, ol {
}

p {
}

.blockbg {
  background: #D9D785;
}

blockquote {
  background: url(Puzzled-images/img08.jpg) no-repeat left top;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  margin: 0 0 0 15px;
  padding: 0px 20px 0px 30px;
  font-size: 18px;
  color: #3D3D3D;
}

ul {
}

ol {
}

a {
  color: #000000;
}

a:hover {
  text-decoration: none;
}

small {
}

hr {
  display: none;
}

img {
  border: none;
}

img.left {
  float: left;
  margin: 0 15px 0 0;
  border: #D9D785 1px dashed;
}

img.right {
  float: right;
  margin: 0 0 0 15px;
  border: #D9D785 1px dashed;
}

.text1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  margin: 0 0 0 15px;
  padding: 90px 20px 0px 30px;
  font-size: 30px;
  color: #FFFFFF;
}

/* Header */

#header {
  width: 900px;
  margin: 0 auto;
  height: 71px;
  letter-spacing: -1px;
  font-family: Georgia, "Times New Roman", Times, serif;
}


#headerbg {
  clear: both;
  margin: 0 auto;
  width: 900px;
  height: 209px;
  background: url(Puzzled-images/img05.jpg) no-repeat left top;
  margin: 0 auto;
  margin-top: 20px;
}

/* Logo */

#logo {
  float: left;
  margin-top: 30px;
}

#logo h1, #logo h2, #logo p {
  float: left;
  margin: 0;
  text-transform: lowercase;
}

#logo h1 {
  background: url(Puzzled-images/img04.jpg) no-repeat left 50%;
  padding-left: 60px;
  text-align: center;
  font-size: 3.2em;
  color: #000000;
}

#logo h1 a {
  color: #000000;
}

#logo p {
  padding-top: 27px;
  text-transform: uppercase;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size:10px;
  color: #000000;
}

#logo h2 a, #logo p a {
  color: #000000;
}

#logo a {
  text-decoration: none;
}

/* Menu */

#menu {
  float: right;
  margin-top: 21px;
}

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

#menu li {
  display: inline;
}

#menu a {
  display: block;
  float: left;
  padding: 30px 20px 0 20px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: #4E4E4E;
}

#menu a:hover {
  background: url(Puzzled-images/img03.jpg) no-repeat center top;
}

#menu .current_page_item a {
  background: url(Puzzled-images/img03.jpg) no-repeat center top;
}

/* Page */

#page {
  width: 900px;
  margin: 0 auto;
  padding-top: 20px;
  background: #F4F4F4;
}

#latest-post {
  float: left;
  width: 570px;
  padding: 0px 20px 0px 20px;
  line-height: 25px;
  font-size: 12px;
}

#recent-posts {
  float: right;
  width: 250px;
  padding: 0px 10px 20px 20px;
  line-height: 25px;
  font-size: 12px;
}

#recent-posts .entry {
}

#recent-posts .entry a {
  background: #333333;
  padding: 5px 10px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 10px;
  color: #CCCCCC;
}

#recent-posts .more {
  background: url(Puzzled-images/img04.gif) no-repeat left 50%;
  padding-left: 20px;
}

.post {
}

.post .title {
  margin: 0;
}

.post .meta {
  margin: 0;
  padding-bottom: 10px;
  padding-top: 10px;
  line-height: normal;
  font-size: 13px;
  color: #505050;
}

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

.post .entry {
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: #9C9C9C 1px dashed;

}

/* Sidebar */

#sidebar {
  clear: both;
  width: 900px;
  background: #000000;
  color: #CCCCCC;
  padding: 10px 0 0 0;
}

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

#sidebar li {
  display: block;
  float: left;
  width: 187px;
  padding: 10px 10px 10px 25px;
}

#sidebar li ul {
  line-height: 1.8em;
}

#sidebar li li {
  display: list-item;
  background: url(Puzzled-images/img07.gif) no-repeat left 50%;
  float: none;
  width: auto;
  padding: 0 0 0 10px;
  line-height: 25px;
}

#sidebar h2 {
  margin: 0 0 10px 0;
  color: #FFFFFF;
}

#sidebar a {
  text-decoration: none;
  color: #CCCCCC;
}

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

/* Footer */

#footer {
  width: 900px;
  height: 50px;
  margin: 0 auto;
  margin-bottom: 20px;
  background: url(Puzzled-images/img06.jpg) no-repeat left top;
  font-size: 11px;
  color: #CCCCCC;
}

#footer p {
  margin: 0;
  padding: 13px 20px 15px 20px;
}

#footer a {
  color: #FFFFFF;
}

#legal {
  float: left;
}

#links {
  float: right;
}
</style>


</head>
<body>
<!-- start header -->
<div id="header">
  <div id="logo">
    <h1><a href="#">Puzzled</a></h1>
  </div>
  <div id="menu">
    <ul>
      <li class="current_page_item"><a href="#">home</a></li>
      <li><a href="#">photos</a></li>
      <li><a href="#">about</a></li>
      <li><a href="#">links</a></li>
      <li><a href="#">contact</a></li>
    </ul>
  </div>
</div>
<!-- end header -->
<div id="headerbg"><p class="text1">&#8220;In posuere eleifend odio quisque <br />
  semper augue mattis&#8221;</p>
</div>
<!-- start page -->
<div id="page">
  <!-- start content -->
  <div id="content">
    <!-- start latest-post -->
    <div id="latest-post" class="post">
      <h1 class="title">Welcome to Our Website!</h1>
      <p class="meta"><small>Posted by Admin on August 3, 2007<br />
        Filed under <a href="#">Uncategorized</a> | <a href="#">Comments (12)</a></small></p>
      <div class="entry">
        <p>This is <strong>Puzzled</strong>, a free, fully standards-compliant CSS template designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>. This free template is released under a <a 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. The photo used is from <a href="http://www.pdphoto.org/">PDPhoto.org</a>. Aside from that, have fun with it :)</p>
        <h2>Sample Tags</h2>
        <blockquote>
          <p>A blockquoted paragraph. In posuere eleifend odio quisque semper augue mattis wisi maecenas ligula.&#8221;</p>
        </blockquote>
        <p>An example of an ordered list:</p>
        <ol>
          <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
          <li>Phasellus nec erat sit amet nibh pellentesque congue.</li>
          <li>Cras vitae metus aliquam risus pellentesque pharetra.</li>
        </ol>
        <h3>Heading Level 3: Followed by an Unordered List</h3>
        <ul>
          <li>Cras vitae metus aliquam risus pellentesque pharetra.</li>
          <li>Maecenas vitae orci vitae tellus feugiat eleifend.</li>
          <li>Etiam ac tortor eu metus euismod lobortis</li>
        </ul>
        <p>Pellentesque tristique ante ut risus. Quisque dictum. Integer nisl risus, sagittis convallis, rutrum id, elementum congue, nibh. Suspendisse dictum porta lectus. Donec placerat odio vel elit. Nullam ante orci, pellentesque eget, tempus quis, ultrices in, est. Curabitur sit amet nulla. Nam in massaed vel tellus. </p>
      </div>
    </div>
    <!-- end latest-post -->
    <!-- start recent-posts -->
    <div id="recent-posts">
      <div class="post">
        <h2 class="title">Lorem Ipsum Dolor </h2>
        <p class="meta"><small>Posted by Admin on August 3, 2007<br />
          Filed under <a href="#">Uncategorized</a> | <a href="#">Comments (12)</a></small></p>
        <div class="entry">
          <p>Quisque dictum. Integer nisl risus, sagittis convallis, rutrum id, elementum congue, nibh. Suspendisse dictum porta lectus. Donec placerat odio vel elit [&hellip;]</p>
          <p><a href="#" class="more">Read more</a></p>
        </div>
      </div>
      <div class="post">
        <h2 class="title">Suspendise Dictum </h2>
        <p class="meta"><small>Posted by Admin on August 3, 2007<br />
          Filed under <a href="#">Uncategorized</a> | <a href="#">Comments (12)</a></small></p>
        <div class="entry">
          <p>Quisque dictum. Integer nisl risus, sagittis convallis, rutrum id, elementum congue, nibh. Suspendisse dictum porta lectus. Donec placerat odio vel elit [&hellip;]</p>
          <p><a href="#" class="more">Read more</a></p>
        </div>
      </div>
      <div class="post">
        <h2 class="title">Maecenas Vitaeorci Vitae</h2>
        <p class="meta"><small>Posted by Admin on August 3, 2007<br />
          Filed under <a href="#">Uncategorized</a> | <a href="#">Comments (12)</a></small></p>
        <div class="entry">
          <p>Quisque dictum. Integer nisl risus, sagittis convallis, rutrum id, elementum congue, nibh. Suspendisse dictum porta lectus. Donec placerat odio vel elit [&hellip;]</p>
          <p><a href="#" class="more">Read more</a></p>
        </div>
      </div>
    </div>
    <!-- end recent-posts -->
  </div>
  <!-- end content -->
  <!-- start sidebar -->
  <div id="sidebar">
    <ul>
      <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>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 style="clear: both;">&nbsp;</div>
  </div>
  <!-- end sidebar -->
</div>
<!-- end page -->
<div id="footer">
  <p id="legal">&copy;2007 Puzzled. All Rights Reserved.  Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a> 
  | <a href="http://www.cssportal.com/">CSS Portal</a></p>
  <p id="links"><a href="#">Privacy</a>&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; <a href="#">Terms</a> &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <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> &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><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.Text paragraph with sidebar
12.Sidebar with border
13.Div Sidebar padding: 0 38px 45px 29px;
14.Div Sidebar width: 328px;
15.Div Sidebar float: left;
16.Div based sidebar
17.Sidebar column
18.Sidebar with read more link 3
19.Layout for sidebar and article
20.Navigation sidebar
21.Two columns with sidebar
22.position: absolute; Sidebar
23.Sidebar Link list
24.Sidebar with right border
25.Links inside sidebar
26.Sidebar title
27.Sidebar with read more
28.Sidebar with around corner
29.Login form inside sidebar
30.Shading sidebar title
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