Posted by Jonathan N. Little on 12/13/06 06:01
Slick50 wrote:
> http://messiah.scojul.homedns.org
>
> Two problems:
> 1) UL does not display below header DIV in FF, looks OK in IE6
> 2) UL list items will not center in FF or IE.
>
> I had a hard enough time getting the stupid gif and text to display on the
> same line, and now this...I'm going to go nuts... It shouldn't be this hard,
> should it?
>
> Grrrrrr...
>
> Thanks.
>
>
Don't see a list at URL, but if you want a list "UL" centered you must
1) give it a width and 2) set margins left and right to auto.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<titleCentered List</title>
<style type="text/css">
UL { width: 5em; margin-left: auto; margin-right: auto; }
</style>
</head>
<body>
<ul>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ul>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|