quote:
Originally posted by wj
And Surfi, The probelm with that code is that it's left aligned, I wanted center Sorry, but THANKS for the help.
to make it center just give your master div (#container probably) the following
margin:0 auto 0 auto;
as in 0 pixels for top and bottom (which are your to change if needed)... the auto values calculate the needed free space equally for both empty sides which makes the #container aligned as center...
EDIT: I also misunderstood... anyways maybe the answer comes useful somewhere...
take a look at still-not-ready
movies.ee... built up only on css and divs - works excellent on IE, FF and Opera latest versions...
--------------------------------------------------------------------------------------------
a little offtopic:
instead of
margin-top:10px;
margin-right:20px;
margin-bottom:30px;
margin-left:40px;
you can use
margin:10px 20px 30px 40px;
(same system goes for padding)
also instead of
background-image:url(images/bg.gif);
background repeat:no repeat;
you can use
background-image:url(images/bg.gif) no-repeat;
and borders like
border:2px solid #850000;
these few shortened versions save your time a lot and optimize your css... more info @
www.w3schools &
alistapart.com...