Be careful with centring as some browsers pass text alignment onto their child selectors. So you might centre a table and find that all text within that table is centred on some browsers.
Better to use this CSS:
margin-left: auto;
margin-right: auto;
e.g. using inline styles:
<div style="margin-left: auto; margin-right: auto;">
Div Content
</div>
A set of resources on positioning with CSS can be found here:
http://www.thenetplace.com/css.php#positioning
It includes a set of links to articles on centering with CSS.
__________________
3,000+ links on web site design, usability, accessibility, tools,
books, link checkers, software, associations, events, web standards...
http://www.theNetPlace.com/
Last edited by theNetPlace.com; 01-14-2004 at 07:38 AM..
|