Jump to content

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


Ajmal
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...