You are here: Re: newbie very frustrated with simple CSS « HTML « IT news, forums, messages
Re: newbie very frustrated with simple CSS

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация