I have a div div inside a div container, and the title has a different background color than the div container.
<div class="container"> <header class="site-header"> <h1>Site Title</h1> <h5>Site Description</h5> <nav class="site-nav"> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> </ul> </nav> </header>
My problem is that the container div has indents on the right and left, but I want the title to ignore this addition, so the background color will be displayed over the entire width and will not be indented.
Here's the jsfiddle of my code: http://jsfiddle.net/6e46fzge/
html css
Thomas spade
source share