So I have been trying to put a div side by side here but I have run out of options.
<div id='body'>
<div id='header'>
</div>
<div id='container'>
<div id='navigation'></div>
<div id='content'>
<div id='shoutout-box'></div>
</div>
</div>
</div>
I want the header to span the entire browser’s width while the container is suppose to show up below the header. The navigation should be side-by-side with the content. Inside the content, I want the shoutout-box to be contained in the content’s div but span the entire width of content’s div. Is this possible?
When organising div layout my favourite trick is to use borders on the containers
to see visually where they “land” on the page, I’ve added this in my example code.
The trick of getting containers side by side is to use the css float property. This has been added to the
<div id='navigation'>css properties. Note that following divs after a floated div will also float. Use the css clear property to put that div back “inline” (make it not float). As an example, take out the notneeded css and watch how the footer jumps to the side of the contents container).