Ajmal Posted September 16, 2009 Share Posted September 16, 2009 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 More sharing options...
Ingolme Posted September 16, 2009 Share Posted September 16, 2009 What exactly is not working? The code is really simple, there's hardly anything that could go wrong. Link to comment Share on other sites More sharing options...
Ajmal Posted September 16, 2009 Author Share Posted September 16, 2009 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 More sharing options...
Ingolme Posted September 16, 2009 Share Posted September 16, 2009 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 More sharing options...
Ajmal Posted September 16, 2009 Author Share Posted September 16, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.