Click to See Complete Forum and Search --> : margin fix for list menus


two4god07
01-27-2009, 02:40 PM
I have had trouble with using lists as menus because whenever I set their margins to 0, firefox still showed the margin and IE had it correct.

I've busted my brain for days trying to figure out how to make it the same without having to use BR instead of list tags.

after research I found

* {
margin:0;
padding:0;
border:0;
}

This sets all the margins for every object and element on the page to 0 as well as padding and border.

Now, the individual elements will only have the margins I tell them to have without browser defaults getting in the way.

It now works correctly on firefox.

This issue gave me so many headaches that I decided to share the fix with everyone else that may be having the same issue.

Fang
01-28-2009, 02:40 AM
http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/
http://developer.yahoo.com/yui/reset/