here I use <div> to show the border behind the category <h1> , where both <body> and <h1> have corresponding background images (which are also lined up)
jsfiddle example
CSS
body { background:url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/gray_jean.png'); font-family:helvetica,arial,sans-serif; } #container { margin:0 20px; position:relative; } h1 { position:relative; float:left; padding-top:6px; padding-right:20px; font-size:2em; background:url('http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/gray_jean.png') } .border { background:url('http://s3.amazonaws.com/creattica/uploaded-images/0016/6142/patterns_009_blue-hexagon-pattern_crop-iphone_web_for-creattica.jpg') repeat-x -10px 0; position:absolute; top:20px; width:100%; height:3px; } .listings { clear:both; }
HTML
<div id="container"> <div class="border"></div> <h1>Catering</h1> <div class="listings"> <ul> <li> Catering Company 1 </li> <li> ... </li> </ul> </div> </div>
Mikem source share