Read more and comments : Comment « CSS Controls « HTML / CSS






Read more and comments

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">


#content {
  width: 1003px;
  overflow: hidden;
  background: url(images/main_bg.gif) top left repeat-y;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

#wrapper {
  width: 1003px;
  overflow: hidden;
  background: url(images/end_bg.jpg) bottom left no-repeat;
}


#main {
  width: 670px;
  float: left;
}

#main h2 {
  display: block;
  padding: 55px 0 45px 124px;
  background: url(images/main_top.jpg) top left no-repeat;
  font-size: 24px;
  color: #84919E;
  font-weight: normal;
}

#posts {
  overflow: hidden;
}

.post {
  width: 582px;
  overflow: hidden;
  padding: 0 0 39px 38px;
  color: #97A7B7;
}

.post h1 {
  font-size: 28px;
  color: #ACCAE7;
  padding: 0 0 20px 0;
}

.post img {
  padding: 0 0 24px 0;
}

.post p {
  padding: 0 0 13px 0;
}

.post a,#sidebar .more {
  color: #19ACE3;
  text-decoration: underline
}

.post a:visited,#sidebar .more:visited {
  text-decoration: underline
}

.post a:hover,#sidebar .more:hover {
  text-decoration: none
}

.post .more,#sidebar .more {
  display: block;
  float: left;
  line-height: 16px;
  background: url(images/more.gif) top left no-repeat;
  padding: 0 0 0 22px;
  margin: 0 18px 0 0;
}

.post .comments {
  display: block;
  float: left;
  line-height: 16px;
  background: url(images/comments.gif) top left no-repeat;
  padding: 0 0 0 22px;
  margin: 0 18px 0 0;
}

#pager {
  width: 580px;
  height: 62px;
  margin: 0 0 0 38px;
  padding: 8px 0 0 0;
  border-top: 1px solid #242836;
  font-size: 12px;
  overflow: hidden;
}

#pager a {
  
}

#pager ul {
  display: block;
  overflow: hidden;
  float: left;
  padding: 0 125px;
}

#pager li {
  display: inline;
}

#pager ul a {
  color: #19ACE3;
  padding: 0 4px;
  text-decoration: underline;
}

#pager #active {
  text-decoration: none
}



</style>
</head>
<body>

    <div id="content">
      <div id="wrapper">
        <div id="main">
          <div id="posts">
            <h2>Heading</h2>
            <div class="post">
              <h1 class="title">Heading</h1>
              <a href="#"><img src="images/photo1.jpg" alt="" width="580" height="285" /></a>
              <p>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. 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. </p>
              <a href="#" class="more">Continue reading</a>
              <a href="#" class="comments">17 Comments</a>
            </div>
            <div class="post">
              <h1 class="title">Heading</h1>
              <a href="#"><img src="images/photo2.jpg" alt="" width="580" height="285" /></a>
              <p>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.</p>
              <a href="#" class="more">Continue reading</a>
              <a href="#" class="comments">5 Comments</a>
            </div>
            <div class="post">
              <h1 class="title">Heading</h1>
              <a href="#"><img src="images/photo3.jpg" alt="" width="580" height="285" /></a>
              <p>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.</p>
              <a href="#" class="more">Continue reading</a>
              <a href="#" class="comments">42 Comments</a>
            </div>                                                            <div id="pager">
              <a href="#" class="previous">previous page</a>
              <ul>
                <li><a href="#" id="active">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">6</a></li>
                <li><a href="#">7</a></li>
                <li><a href="#">8</a></li>
                <li><a href="#">9</a></li>
              </ul>
              <a href="#" class="next">next page</a>
            </div>
          </div>
        </div>
      </div>
    </div>
</body>

</html>

   
    
  








Related examples in the same category

1.Post comment layout
2.Sidebar with latest comments
3.Comments form
4.Comments form 2
5.Read more and comments bar
6.Comments form 3
7.Comments form 4
8.Comments form 5
9.Comments form 6
10.Comments form template
11.Comments form with background
12.Post by date
13.Contact information panel
14.?Add Comments.doc
15.Comments Form 7
16.Comments form 8
17.Read more and comment links
18.Comment form
19.Comments form 9
20.Comment links below the summary