At 02:31 PM 1/12/2006, Thomas Hall wrote: >Maybe a stupid question but why won't this <ul> center in the page: > > > ><html> > ><body> > ><ul style="width:800px;margin:0 auto;"> > ><li>Test</li> > ></ul> > ></body> > ></html>
Are you using a valid DOCTYPE? Which browser? The following works fine for me (colors added to see what's going on) in MSIE6: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> </head> <body> <ul style="width:800px;margin:0 auto;border:1px solid red"> <li style="background-color:yellow">Test</li> </ul> </body> </html> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/