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