Code Program

Padding and Margin issue in ie 6

Posted on | February 6, 2009 | No Comments

I was getting an error of double padding in ie6. As I have put padding in parent container. In ie6 it is taking padding of double pixels. For that I got some CSS hacks:

For Internet Explorer 6:
padding:2px;
_padding:0px;

But by using hacks html page doesn’t remain compatible with W3C standards.

The solution for that is using separate CSS for different browsers or structuring your HTML Code in different way. I rework on my code and get rid of the problem with W3C standards.

Comments

Leave a Reply