Background with bottom border
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Headings</title>
<style type="text/css" media="screen">
body{
font-family: verdana, sans-serif;
font-size: 12px;
}
#divID h1 {
font-family: Arial, sans-serif;
font-size: 24px;
color: #666;
padding: 4px;
background: #ddd;
border-bottom: 2px solid #ccc;
}
</style>
</head>
<body>
<div id="divID">
<h1>This is the Title of this page.</h1>
</div>
</body>
</html>
Related examples in the same category