| 2:24 pm on Apr 6, 2006 (gmt 0)|
margin: auto (Doesn't work in IE5. Needs a valid Doctype to work in IE6.)
| 2:31 pm on Apr 6, 2006 (gmt 0)|
You should start by studying w3schools tutorial. [w3schools.com], where you will find out alll about css and you can even take part in a quiz.
I can kick you off with this however:
<div id="container">Your content starts here</div>
I will suggest you visit the above link, as it should get you off to a good start.
| 2:42 pm on Apr 6, 2006 (gmt 0)|
thanks for your tips - unfortunately problem not solved yet. might it be that I have divs inside the container div?
| 2:52 pm on Apr 6, 2006 (gmt 0)|
as Longhaired Genius said, you need the correct doctype for this to render correctly. Also it depends on how you are positioning the div's within the container. If you are position the div's inside absolutely then you will have to insert position:relative to the #container in the css.
Post your full code if you want us to take a look!
| 3:25 pm on Apr 6, 2006 (gmt 0)|
margin-left: -390px; //half of the width
| 3:55 pm on Apr 6, 2006 (gmt 0)|
thanks again - have to run now - maybe I'll post my code later if I can't get a satisfactory result.
| 8:14 pm on Apr 6, 2006 (gmt 0)|
|width: 780px; |
That is generally too wide; it will overshoot the 800x600 screens and you'll end up with a horizontal scrollbar.
What you want to have is 760px.