Reply to Re: Centred headers browsed at Firefox

Your name:

Reply:


Posted by Steve Pugh on 10/14/05 13:38

Luigi Donatello Asero wrote:
> Why are the headers in the menu not centered when I browse the page
> https://www.scaiecat-spa-gigi.com/sv/valkommen.php
>
> at Firefox?

The headers are centered. The luridly coloured boxes are off center.

IE and FireFox have different default values for the margin and padding
on UL and LI elements. They just happen to look the same when left
unchanged by author CSS. But if you only change some of the values you
run the risk of over riding the defaults in one browser but leaving
them alone in another.

If you set one of
ul {margin-left: }
ul {padding-left: }
li {margin-left: }
li {padding-left: }
Then you may need to set all of them.

See http://steve.pugh.net/test/test37.html for a crude demonstration.

Steve

[Back to original 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

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