| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Sathish babu
Join Date: Apr 2006
Location: chennai
Posts: 18
|
css bug in opera & firefox
Hi, I am facing a problem while using css. pls look at the following code. <html> <head> <style type="text/css"> html,body{ margin:0; padding:0; } ul{margin:0;} </style> </head> <body> <ul> <li>Margin problem</li> </ul> </body> </html> Problem: when i set margin=0 for the 'li' item its removed when i view from Internet Explorer. But still there is some left margin on other browsers like Opera and firefox. How do i overcome this? Can anybody help me? Thanks in advance. Sathish. |
|
|
|
|
|
#4 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
I believe some browsers use margins and some use padding to indent lists. Quote:
We use Yahoo's Yahoo! UI Library: Reset CSS |
|
|
![]() |