Earl Parker II
07-07-2003, 01:20 AM
I've been working with CSS fairly intensively for about 3 weeks now (which means I know about enough to be dangerous), with the goal of eliminating tables as much as possible in favor of CSS. In that time I've been doing a lot of experimenting and reading, including reading in this forum.
The bulk of my CSS problems have to do with positioning items in general and centering them on the page in particular. So far I've come to the following conclusions- in general:
1. Using absolute positioning works pretty well until you try to center items (such as a graphic) on a page. I've found one way to do it- body {text-align: center}- and I'm sure there's others but body {text-align: center} seems to create other problems.
2. Using relative positioning works pretty well until you find you need to go back and change the position of one item, which unleashes a minor nightmare.
I'm not asking for specifics, I'd just like to know if I've got a decent handle on the above issue or if I'm really out in left field here. BTW, I'm using IE6 (which I understand does have a few problems with CSS2) and margin: 0 auto; doesn't seem to center anything in IE6.
Any feedback would be most welcome.
The bulk of my CSS problems have to do with positioning items in general and centering them on the page in particular. So far I've come to the following conclusions- in general:
1. Using absolute positioning works pretty well until you try to center items (such as a graphic) on a page. I've found one way to do it- body {text-align: center}- and I'm sure there's others but body {text-align: center} seems to create other problems.
2. Using relative positioning works pretty well until you find you need to go back and change the position of one item, which unleashes a minor nightmare.
I'm not asking for specifics, I'd just like to know if I've got a decent handle on the above issue or if I'm really out in left field here. BTW, I'm using IE6 (which I understand does have a few problems with CSS2) and margin: 0 auto; doesn't seem to center anything in IE6.
Any feedback would be most welcome.