It works great. He may use some refinements, but the idea is pretty solid.
Live Demo ( edit )
CSS
html, body { margin: 0; padding: 0; border: 0; overflow-x: hidden } body { background: #eee } #container { width: 80%; margin: 0 auto; background: #bbb; } #menu { overflow: auto } #menu li { float: left; width: 40px; margin: 5px; height: 24px; background: #fff } h1, h1 span, h2, h2 span { padding: 3px 0; height: 25px; } h1, h2 { position: relative; margin: 9px 0 } h1 span, h2.left span { display: block; position: absolute; width: 100%; left: -100%; top: 0 } h2.right span { display: block; position: absolute; width: 102%; left: 100%; top: 0 } h1 { background: red; width: 80% } h1 span { background: blue } h2.left { background: red; width: 30%; float: left } h2.left span { background: blue } h2.right { background: red; width: 30%; float: right } h2.right span { background: blue } #content { clear: both }
HTML:
<div id="container"> <h1><span></span>Heading</h1> <h2 class="left"><span></span>Sub-heading</h2> <h2 class="right">Sub-heading<span></span></h2> <div id="content"> Hi! </div> </div>
source share