It's not a silly question, the only silly question is the one you do NOT ask
To center a design with CSS takes a couple of things, but the first thing you need to do is lose all that absolute positioning, it will do nothing but drive you nuts.. and cause other problems.
I would highly recommend this tutorial:
Floatutorial: Step by step CSS float tutorial
..and this reference on css layouts:
Css Layouts - css-discuss
A very basic approach to a centered fixed-width layout:
body{
text-align: center;} - centers for IE
#wrapper{ - a main container for everything else
position: relative;
width: 780px; -- for an 800x600 layout
margin: 0 auto: - centers the container in non-ie browsers
text-align: left;}
Then your html setup would look like:
<body>
<div id="wrapper">
content and other divs go inside this "wrapper"
</div>
</body>
I would also suggest you use an unordered list for your menu and get rid of all those unnecessary divs.
Listutorial: Step by step CSS list tutorial
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|