I would suggest you to check again your html code and css styles. They're messy...
Tip:
You have defined two different divs with the same ID -> "content" like this:
<div id="content">....</div>
<div id="content">....</div>
And now you ask why the second div is shown below the first one??
Stop creating your (that is learning HTML and/or CSS) websites using Notepad...it's 2007, for god sake..
