There are quite a few things that needed done. You should probably read up on CSS.
Here's horizontal. http://jsfiddle.net/eUSNd/51/
basically I used float:left
on the newly created style #nav li
then added a min-width (so they would spread properly).
Then I had to resize the container divs. Absolute positioning everything is a very risky practice. Please look up positioning and floats.