Jump to content

How To Fix The Following Problem In Firefox Browser Using Css And Html?


Ajmal

Recommended Posts

The following codes work fine using IE7 and Chrome browsers. However, when I use FireFox , it does not work properly.

<ul><li>Abc</li><li>Xyz</li><li>Hi</li></ul>

Its CSS is

ul{margin-left:10px;margin-top:0px;text-align:left;}li{margin-left:10px;margin-top:0px;text-align:left;}

Link to comment
Share on other sites

What exactly is not working? The code is really simple, there's hardly anything that could go wrong.
When i write that code in Table <td>. The <il> element will start on the center of <td>. while in IE7 it will start after 10 pixels which i want in Fire Fox.how???
Link to comment
Share on other sites

When i write that code in Table <td>. The <il> element will start on the center of <td>. while in IE7 it will start after 10 pixels which i want in Fire Fox.how???
Set padding to zero on the <ul> element. Different browsers have a different padding as a default:
ul { padding: 0; }

Link to comment
Share on other sites

Set padding to zero on the <ul> element. Different browsers have a different padding as a default:
ul { padding: 0; }

Thanks Ingolme.You solve my problem.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...