Better not to use a <hr>, because this is only presentational in nature. You could either use a background image on the h2, or some fancy CSS like this:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style media="all">
div {width: 800px; margin: 0 auto; height: 500px; background: #e7e7e7; padding: 20px; overflow: hidden;}
h2 {position: relative; line-height: 1em; display: inline-block;}
h2:after {
content:"";
border-bottom: 2px solid #000;
position: absolute;
margin-top: 0.5em;
width: 999em;
left: 110%;
}
</style>
</head>
<body>
<div>
<h2>A heading</h2>
<p>Some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text</p>
</div>
</body>
</html>
Bookmarks