I am trying to position a div called #top_menu in the center of the page.
<div id="top_menu">This is the menu and it is centered on the page</div>
Here is my CSS code:
#top_menu { margin: 0 auto; width: 600px; ... }
Next to the top menu, I want to have a logo (#logo).
This is what I have implemented so far:
#logo { position: absolute; top: 0px; left: 10px; width: 200px }
However, I am facing an issue:
If the browser window's size is smaller than 800px, the centered div overlaps with the logo div. I would like there to be scrollbars instead. How can I achieve this?
Thank you for your help! - Freddi