Date block : Section « CSS Controls « HTML / CSS






Date block

  

<!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">
.date {
  font-family: Arial;
  font-size: 12px;
  font-weight: bold;
  color: #FEF9ED;
  float: left;
  line-height: 17px;
  padding: 0 18px 0 8px;
  margin-top: -1px;
  border-top: 1px solid #9E6E2E;
  background-image: url(images/date.gif);
  background-position: right -1px;
  background-repeat: no-repeat;
  background-color: #C58A3B;
}
</style>
</head>
<body>
   <div class="date">July 25th, 2008</div>

</body>

</html>

   
    
  








Related examples in the same category

1.3D section bar
2.Scrollable section
3.Section on the left
4.Red section title bar
5.Shading section bar
6.Line separated sections
7.Single column layout with two-level top section
8.Right section with boxes
9.Box section with dark background
10.Section title background image
11.Leaving space beteen section
12.Using Padding to add space beteen two sections
13.Even distributed section
14.Using border to highlight section title
15.Section with image title bar
16.Using border to highlight section title 2
17.Section with shading background image
18.White content area and gray outsider
19.Post by date
20.Read more for link set
21.Using Wider border for summary row
22.Information panel with columns of links