> Ok, I've tried that. I've also used the container to give a background
> colour of white for the content area, where the main body background
> will be grey. This hasn't been entirely successful; I guess I have to
> set a fixed height, as not setting one meant the white background
> wasn't seen, and setting 100% as I have at present isn't really what I
>This is still an issue for me. I could define 4 container classes, one
for each page, and set it to the appropriate height for that page, but
this isn't really a fix. I've done lots of googling but I must be going
wrong somehow because I can't find a way to get the container to be at
least the length of the longest bit within it, but no longer.
> Site is http://www.wdam.co.uk/clients/dynam/hh/
>The other issues were caused by me being a complete lemon and
forgetting to add a CENTER tag in an important place, so please ignore
them! Sorry, I'm not entirely well and it's been a long week!
I just caught the end of this thread and wanted to pass on some CSS code
for centering a page. I've tried different techniques and this
particular snippet works everytime:
margin: 1em auto;
border: 1px solid #000;
Note that you will probably want to change the border and background.
Also, I would recommend removing the deprecated center tag. Re-defining
the body tag and using a wrapper div will be sufficient. You don't have
to set a fixed height because the container wraps around the content of
your page, and the height will adjust to the content, so you should only
need one container div for the site.
***Hope this helps!
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/