Section title background image : Section « CSS Controls « HTML / CSS






Section title background image

  

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>

<style type="text/css">
body {

margin: 10%;
}

#box {
 width: 214px;
 background-image: url(./css-book/bkgd_bottom.gif);
 background-position: bottom;
 background-repeat: no-repeat;
}

h2 {
 background-image: url(./css-book/bkgd_top.gif);
 backgroung-position: left top;
 background-repeat: no-repeat;
 padding: 7px 7px 3px 7px;
 margin: 0;
 border-bottom: 1px solid #999;
 font-size: 1.3em;
 font-weight: normal;
 color: #eee;
}

p {
  padding: 0 7px 7px 7px;
  margin: 0;
  color: #333333;
  font-size: .8em;
  line-height: 1.5;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 1.1em;
}




</style>
</head>

<body>

<div id="box">

  
  
   <h2>
  Title
   </h2>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam.</p>

 </div>
 
 
</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.Leaving space beteen section
11.Using Padding to add space beteen two sections
12.Even distributed section
13.Using border to highlight section title
14.Section with image title bar
15.Using border to highlight section title 2
16.Section with shading background image
17.White content area and gray outsider
18.Post by date
19.Date block
20.Read more for link set
21.Using Wider border for summary row
22.Information panel with columns of links