Previous Message
Next Message

Padding or Margin in Firefox

Sent by Gunlaug_Sørtun on 26 March 2006 00:12


Joanne wrote:
> http://www.queenslandairshow.com.au/test/
> 
> I have made the menu with this using PMM from PVII and customized it 
> a little. In IE and Opera, the menu behaves nicely and sits over to 
> the left where it belongs.
> 
> In Firefox though, there's a padding or margin of 40 pixels to the 
> left of the Horizontal menu and I have no idea why.

Firefox has a default padding-left on ul - and so has Opera 9+.
IE has a default margin-left on ul - and so has Opera pre 9.
All are correct, as no standard defines how the default-space on lists
should be achieved.

Solution: zero out both margin-left and padding-left on ul if you want
it to line up tight left across browser-land. Zero out margin-left and
choose a suitable padding-left if you want a uniform space there.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: