Code layout : Size and Layout « Layout « HTML / CSS






Code layout

  
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Spotlight  | A Free CSS Template by RamblingSoul</title>
<style type='text/css'>
* {
  margin: 0px;
  padding: 0px;
}
#wrap {
  margin: auto;
  width: 893px;
}

#wrap #topbar {
  height: 35px;
  padding-top: 15px;
}
#wrap #header {
  background: url(images/header.jpg) no-repeat;
  height: 176px;
}


body {
  background: #E6E0D2; url(images/bg.jpg) repeat;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  }
#wrap #main #content p {
  line-height: 22px;
  margin-bottom: 25px;
  color: #513F33;
}
#wrap #main #sidebar .sidebarcontent .sidebarcol {
  float: left;
  width: 48%;
}
#wrap #main #sidebar .sidebarcontent .sidebarbox {
  color: #513F33;  font-size: 11px;
  padding: 10px;
  background: #F2ECD7;
  margin: 0px 10px 10px 10px;
  line-height: 18px;
}
#wrap #main #content .post .posthead span {
  color: #E84002;
}


#wrap #main #content .post .posthead h2 {
  font-family: "Trebuchet MS", Arial, Verdana;
  font-size: 25px;
  color: #000000;
}
#wrap #main #content .post .posthead .datebox {
  display: block;
  margin: 0px;
  padding: 0px;
  background-image: url(images/date.jpg);
  background-repeat: no-repeat;
  height: 96px;
  width: 112px;
  float: right;
}
#wrap #main #content h1, h2, h3, h4 {
  color: #000000;
  font-family: "Trebuchet MS", Verdana, Halvetica, Arial;
}
#wrap #main #content .post form {
  padding-right: 15px;
  padding-left: 15px;
}
#wrap #main #content .post #form label {
  font-family: "Trebuchet MS", Verdana, Halvetica, Arial;
  font-size: 12px;
  color: #040507;
  display: block;
}
#wrap #main #content .post #form .textfield {
  display: block;
  width: 250px;
  border: 1px solid #AF9D72;
  background-color: #F2ECD7;
}


#wrap #main #content .post .posthead .datebox .day {
  font-size: 32px;
  display: block;
  text-align: center;
  padding-top: 18px;
  color: #999900;
}
#wrap #main #content .post .posthead .datebox .month {
  display: block;
  text-align: center;
}
#wrap #main #content .post .postinfo {
  background-color: #F2ECD7;
  padding: 3px;
  margin: 0px;
  color: #E83900;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: dotted;
  border-bottom-style: dotted;
  border-top-color: #D4CEC2;
  border-bottom-color: #D4CEC2;
  font-size: 10px;
}
#wrap #main #content .post {
  margin-top: 15px;
  margin-bottom: 15px;
}
#wrap #main #sidebar .sidebartop img {
  border-top-style: none;
  border-right-style: none;
  border-bottom-style: none;
  border-left-style: none;
  padding-top: 5px;
  padding-right: 15px;
  padding-bottom: 5px;
  padding-left: 25px;
}
#wrap #header #description {
  font-family: "Trebuchet MS", Arial, Verdana;
  font-variant: small-caps;
  font-size: 14px;
  display: block;
  float: right;
  width: 100px;
  text-align: center;
  padding-right: 90px;
  padding-top: 55px;
  color: #FFFFFF;
  font-weight: normal;
}
#wrap #main #content .post .readmore {
  display: inline;
  background-color: #F2ECD7;
  padding: 3px;
}
#wrap #topbar #sitename {
  color: #EC4900;
  font-family: "Trebuchet MS", Arial, Verdana;
  font-size: 26px;
  margin: 0px;
  padding-left: 15px;
  display: block;
  float: left;
}
#wrap #main #sidebar .sidebarcontent h2 {
  color: #000000;
  font-family: "Trebuchet MS", Arial, Verdana;
  text-transform: uppercase;
  font-weight: normal;
  font-size: 20px;
  display: block;
  padding-left: 10px;
}
#wrap #main #sidebar .sidebarcontent ul {
  list-style-type: none;
  padding-left: 15px;
  margin-bottom: 15px;
}
#wrap #main #sidebar .sidebarcontent .posts li {
  padding: 5px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #F2ECD7;
}
#wrap #main #sidebar .sidebarcontent .posts a {
  color: #938157;
  text-decoration: none;
}

#wrap #topbar #sitename span {
  color: #000000;
}

.clear {
  clear: both;
}
#wrap #main #content {
  width: 490px;
  float: left;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 15px;
}
#wrap #main #sidebar {
  margin-left: 520px;
}
#wrap #main #sidebar .sidebartop {
  background-image: url(images/sidebar1.jpg);
  background-repeat: no-repeat;
  height: 51px;
}
#wrap #main #sidebar .sidebarcontent {
  background-image: url(images/sidebar2.jpg);
  background-repeat: repeat-y;
  padding-top: 5px;
  padding-right: 15px;
  padding-bottom: 5px;
  padding-left: 25px;
}
#wrap #main #sidebar .sidebarbtm {
  background: url(images/sidebar3.jpg) no-repeat;
  height: 73px;
}
#wrap #main #sidebar .sidebarcontent .posts a:visited, active {
  color: #938157;
  text-decoration: none;
}
#wrap #main #sidebar .sidebarcontent .posts a:hover {
  color: #282317;
  text-decoration: none;
}
#wrap #main #sidebar .sidebarcontent .normalmenu li {
  display: block;
  height: 25px;
  border-bottom: solid 1px#F2ECD7;
}
#wrap #main #sidebar .sidebarcontent .normalmenu a {
  display: block;
  height: 20px;
  padding-top: 5px;
  padding-left: 5px;
  color: #A2816D;
  text-decoration: none;
  border-bottom-color: #DCFC3;
}
#wrap #main #sidebar .sidebarcontent .normalmenu a:visited, active {
  display: block;
  height: 20px;
  padding-top: 5px;
  padding-left: 5px;
  color: #A2816D;
  text-decoration: none;
  border-bottom-color: #DCFC3;
}
#wrap #main #content a {
  color: #993300;
}

#wrap #main #sidebar .sidebarcontent .normalmenu a:hover {
  display: block;
  height: 20px;
  padding-top: 5px;
  padding-left: 5px;
  color: #333333;
  text-decoration: none;
  background-color: #F2ECD7;
}
#wrap #main #content a:visited, active {
  color: #993300;
}
#wrap #main #content a:hover {
  color: #000000;
  text-decoration: none;
}
#wrap #footer {
  background : url(images/footer.jpg) no-repeat center top;
  padding: 25px 15px 15px 15px;
  text-align: center;
}
#wrap #footer #credit {
  padding-top: 25px;
  font-size: 10px;
}
#wrap #footer a {
  color: #990000;
}
#wrap #footer a:visited, active {
  color: #990000;
}
#wrap #footer a:hover {
  color: #000000;
  text-decoration: none;
}
#wrap #main #sidebar .sidebarcontent  a {
  color: #990000;
}
#wrap #main #sidebar .sidebarcontent a:visited, active {
  color: #990000;
}
#wrap #main #sidebar .sidebarcontent a:hover {
  color: #000000;
  text-decoration: none;
}
#wrap #main #content .post blockquote {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
  background : url(images/blockquote.jpg) no-repeat left top;
  padding : 5px 5px 5px 30px;
  display: block;
  text-align: right;
  border-right: dashed 1px #CEC8BC;
  margin: 5px 10px 5px 5px;
}
#wrap #main #content .post img {
  padding: 3px;
  background-color: #FFFFCC;
  border: 1px solid #D1C6AB;
}
#wrap #main #content .post .alignleft {
  float: left;
  margin: 5px;
}

#wrap #main #content .post .posthead .postinfotop {
  font-size: 10px;
  margin: 0px;
}

#wrap #main #content .post blockquote p {
  color: #993300;
  padding: 0px;
  margin: 0px;
}
#wrap #main #content .post ul {
  padding: 10px;
  list-style-type: none;
  margin-left: 15px;
}
#wrap #main #content .post ol {
  padding: 10px;
  list-style-type: decimal;
  margin-left: 15px;
  list-style-position: inside;
}
#wrap #main #content .post ul li {
  background: url(images/bullet.jpg) no-repeat 0px 7px;
  padding:3px 15px 3px;
  padding-top: 3px;
}
#wrap #main #content .post ol li {
  margin-bottom: 5px;
  padding-top: 3px;
  padding-bottom: 3px;
}
#wrap #main #content .post code {
  font-size: 12px;
  color: #333333;
  background: #F0F0F0;
  white-space: pre;
  padding: 10px;
  margin-bottom: 25px;
  font-family: "Courier New", Courier, monospace;
  display: block;
}
#wrap #main #content .post #pagination {
  padding: 5px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
}
#wrap #main #content .post #pagination span {
  padding-left: 150px;
}
#wrap #main #content  table {
  width: 95%;
  border: 1px solid #C5B798;
  margin-top: 15px;
  margin-bottom: 25px;
}
#wrap #main #content .post  td {
  border-bottom: 1px solid #CDC1A7;
  padding: 5px;
}
#wrap #main #content .post  th {
  font-family: "Trebuchet MS", Arial, Verdana;
  font-size: 14px;
  padding: 5px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #CDC1A7;
  background-color: #CDC1A7;
  color: #993300;
}
#wrap #main #content .post .extract {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
  background: url(images/blockquote.jpg) no-repeat left top;
  padding: 5px 5px 5px 30px;
  display: block;
  float: left;
  width: 150px;
  text-align: right;
  border-right: dashed 1px #CEC8BC;
  margin: 5px 10px 5px: 5px;
}
#wrap #main #content .post #form .textfield:hover {
  display: block;
  width: 250px;
  border: 1px solid #AF9D72;
  background-color: #FFFFCC;
}
#wrap #main #content .post #form input {
  padding: 3px;
  margin-bottom: 15px;
}
#wrap #main #content .post #form .buttons {
  padding: 15px;
}
#wrap #main #content .post #form .buttons input {
  border: 1px solid #AF9D72;
  background-color: #F2ECD7;
}
#wrap #topbar #topmenu {
  float: right;
  font-size: 16px;
  font-family: "Trebuchet MS", Verdana, Halvetica, Arial;
  padding-right: 15px;
  padding-left: 15px;
}
#wrap #topbar #topmenu ul {
  list-style-type: none;
}
#wrap #topbar #topmenu li {
  display: inline;
}
#wrap #topbar #topmenu a {
  display: block;
  float: left;
  text-decoration: none;
  color: #993300;
  font-weight: bold;
  padding-right: 15px;
  padding-left: 10px;
  margin-left: 5px;
  border-right-width: 1px;
  border-right-style: solid;
  border-right-color: #E0D9C9;
}

#wrap #main #content .post #form .textfield:focus {
  display: block;
  width: 250px;
  border: 1px solid #70613F;
  background-color: #FFFFFF;
}
#wrap #topbar #topmenu a:visited, active {
  display: block;
  float: left;
  text-decoration: none;
  color: #993300;
  font-weight: bold;
  padding-right: 15px;
  padding-left: 10px;
  margin-left: 5px;
  border-right-width: 1px;
  border-right-style: solid;
  border-right-color: #E0D9C9;
}
#wrap #topbar #topmenu a:hover {
  display: block;
  float: left;
  text-decoration: underline;
  color: #000000;
  font-weight: bold;
  padding-right: 15px;
  padding-left: 10px;
  margin-left: 5px;
  border-right-width: 1px;
  border-right-style: solid;
  border-right-color: #E0D9C9;
}
#wrap #topbar #sitename a {
  color: #E84002;
  text-decoration: none;
}
#wrap #topbar #sitename a:visited, active, hover {
  color: #E84002;
  text-decoration: none;
}
</style>


</head>

<body>
<div id="wrap">
<div id="topbar">
<h1 id="sitename"><a href="#">Spotlight <span>Blog</span></a></h1>
<div id="topmenu"> 
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="tables.html">Tables</a></li>
<li><a href="forms.html">Forms</a></li>
<li><a href="#nogo">Nogo</a></li>
</ul>
</div>
</div>
<div id="header">
<h2 id="description">Spotlight Is AFree CSS Template</h2>
</div>
<div id="main">

<div id="content">
<div class="post">
<div class="posthead">
<p class="datebox"><span class="day">28</span><span class="month"> September</span></p>

<h2><span>Hello</span> Welcome</h2>
<p class="postinfotop">Posted by Admin</p>
</div>
<blockquote class="extract">
<p>Spotlight Blog is a Free CSS Template released under Creative Commons 2.5 License by Rambling Soul</p></blockquote>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam commodo ornare massa. Vivamus eu nisi. Pellentesque non quam a mauris lacinia condimentum. Nulla facilisi. Fusce malesuada, ligula ac vehicula lobortis, sapien augue ultrices eros, at imperdiet mi lorem nec ipsum. Cras hendrerit blandit enim. Curabitur felis enim, bibendum vitae, tincidunt ut, ornare at, enim. Cras accumsan facilisis nisi. Proin consectetuer est sit amet leo gravida ullamcorper. Cras a lectus et augue pulvinar euismod. Proin hendrerit placerat arcu. In hac habitasse platea dictumst. Etiam quis est ut lectus eleifend dignissim. <span class="readmore"> <a href="#">Read More</a></span></p>
<p class="postinfo">Category | <a href="#">No Comments</a> | <a href="#">Permalink</a></p>
</div>

<div class="post">
<div class="posthead">
<p class="datebox"><span class="day">28</span><span class="month"> September</span></p>

<h2><span>Lists </span>Example</h2>
</div>
<p>
Proin turpis. Aenean vitae neque. Cras ornare dolor id nibh. Etiam quam. Aenean aliquam purus a tellus. Donec mattis metus eget dui. Sed egestas suscipit risus. Nulla odio nunc, consectetuer ut, placerat eleifend, vestibulum eget, justo. Morbi non elit. Suspendisse iaculis nisi. Curabitur nulla. Maecenas scelerisque convallis arcu.</p>

<ul>
  <li>Sed blandit, mauris eu convallis dapibus</li>
  <li>orci augue luctus nisl, ac sodales dolor enim a metus</li>
  <li>Mauris rhoncus, arcu vel viverra aliquet</li>
  <li>sapien diam porttitor orci</li>
  <li>id luctus sem augue sit amet dui</li>
  </ul>
<ol>
  <li>In vulputate magna in orci. </li>
  <li>Mauris ac neque ut velit auctor euismod.</li>
  <li> Duis nisi eros, condimentum quis, bibendum nec, pretium a, dui. </li>
  <li>Proin felis purus, elementum at, sagittis non, euismod at, tortor. </li>
  <li>Duis ut pede vitae odio facilisis semper. </li>
</ol>
<p class="postinfo">Category | <a href="#">No Comments</a> | <a href="#">Permalink</a></p>

</div>
<div class="post">
<div class="posthead">
<p class="datebox"><span class="day">28</span><span class="month"> September</span></p>

<h2><span>Other</span> Style</h2>
</div>
<p>
Sed blandit, mauris eu convallis dapibus, orci augue luctus nisl, ac sodales dolor enim a metus. Mauris rhoncus, arcu vel viverra aliquet, sapien diam porttitor orci, id luctus sem augue sit amet dui. In vulputate magna in orci. Mauris ac neque ut velit auctor euismod.</p>
<code>
#wrap #main #content .post ul {
  padding: 10px;
  list-style-type: none;
  margin-left: 15px;
}
</code>
<p> Duis nisi eros, condimentum quis, bibendum nec, pretium a, dui. Proin felis purus, elementum at, sagittis non, euismod at, tortor. Duis ut pede vitae odio facilisis semper. Proin pede. Vestibulum libero. Aliquam erat volutpat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Fusce auctor, odio ut vulputate fermentum, ante diam tempor augue, in accumsan lectus velit in felis. Phasellus at nulla sit amet magna condimentum elementum. </p>
<p class="postinfo">Category | <a href="#">No Comments</a> | <a href="#">Permalink</a></p>
<div id="pagination"><a href="#">&laquo; Previous</a><span><a href="#">Next &raquo;</a></span></div>
</div>

</div>


<div id="sidebar">
<div class="sidebartop">
  <a href="#"><img src="images/feed.jpg" alt="RSS Feeds" /></a></div>
<div class="sidebarcontent">
<div class="sidebarbox">
<h2>About</h2>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam commodo ornare massa. Vivamus eu nisi. Pellentesque non quam a mauris lacinia condimentum. Nulla facilisi. Fusce malesuada, ligula ac vehicula lobortis, sapien augue ultrices eros, at imperdiet mi lorem nec ipsum. Cras hendrerit blandit enim. <a href="#">Read More</a></p>
</div>
<div class="sidebarcol">
<h2>Pages</h2>
<ul class="normalmenu">
<li><a href="index.html">Welcome Page</a></li>
<li><a href="tables.html">Tables Example</a></li>
<li><a href="forms.html">Forms Example</a></li>
<li><a href="#nogo">No Go Link</a></li>
</ul>
</div>
<div class="sidebarcol">
<h2>Categories</h2>
<ul class="normalmenu">
<li><a href="#nogo">Web Design</a></li>
<li><a href="#nogo">Graphic Design</a></li>
<li><a href="#nogo">CSS &amp; XHTML</a></li>
<li><a href="#nogo">Wordpress</a></li>

</ul>
</div>
<p class="clear2"></p>
<h2>Recent Posts</h2>
  <ul class="posts">
    <li><a href="#">
      Donec mattis metus eget dui. </a></li>
    <li><a href="#">Sed egestas suscipit risus. </a></li>
    <li><a href="#">Nulla odio nunc, consectetuer ut</a></li>
    <li><a href="#"> placerat eleifend, vestibulum eget, justo. </a></li>
    <li><a href="#">Morbi non elit. Suspendisse iaculis nisi.</a></li>
    <li><a href="#"> Curabitur nulla. </a></li>
    <li><a href="#">Maecenas scelerisque convallis arcu. </a></li>
  </ul>
  </div>


<div class="sidebarbtm"></div>

</div>

<div class="clear"></div>


</div>

<div id="footer">
Copy right &copy; Information | <a href="#">And</a> | <a href="#">Some</a> | <a href="#">Links</a> | <a href="#">Goes</a> | <a href="#">Here</a>
<div id="credit">
<a href="http://ramblingsoul.com">CSS Template</a> Rambling Soul</div>
</div>

</div>


</body>
</html>

   
    
  








Related examples in the same category

1.Sized Absolute center aligned
2.width and height inline style
3.width height and absolute positioning
4.Stretched Absolute center aligned
5.Sized Absolute center offset
6.Stretched Absolute centered
7.Top Aligned Shrinkwrapped Static Block
8.Shrinkwrapped Absolute Top Aligned
9.Sized Static Block top offset
10.Response layout with avatar image
11.About page layout
12.About page layout 2
13.Daliy post layout
14.Quotation layout
15.Day by day post layout
16.Fixed Box Layout
17.Using Fixed height and width to create layout
18.Layout input controls with css
19.Using table to layout form controls
20.Form Layout with HTML Example
21.Site map layout
22.Poem layout
23.Nested style layout
24.Liquid Layout
25.Fixed Width Layout
26.Column span for four column layout
27.How tables linearize for layouts
28.Centering a layout horizontally
29.Creating a maximum-width layout
30.Nested Layout Example
31.Gallery layout
32.Link navigation layout
33.Link topic layout
34.Post layout
35.Three link layout
36.Center content layout
37.Card layout page
38.Even column layout
39.Box layout
40.Two column layout, 1024 pixel width
41.Content area layout
42.Page layout with position:absolute;
43.Two-column layout with fixed width and height
44.Using margin to create offset for layout
45.Layout with three layers
46.position:fixed; layout
47.Layout with position:absolute;