Click to See Complete Forum and Search --> : Table padding in IE vs Firefox


lifeasalounge
10-24-2005, 01:32 AM
I have a table that has 5px padding on each side. I have used css to create this padding. I have also used css to create a background in the single cell so that it appears that there is a border around the cell. In IE this works fine but in firefox there is a problem where the padding screws up around some of the edges and does not appear to work.

Does anyone know how to correct this problem?

Kevey
10-24-2005, 01:42 AM
Since you are using css to control the table, you may as well use css to make the table...can we see the code you are having issues with?

Sunny G
10-24-2005, 01:22 PM
Here is a cool little trick

* {
padding:0;
margin:0;
border:0;
}

The aterisk will affect everything on the page. With this, nothing will be padded, there will be no margins and no borders (unless specified elsewhere in your CSS).
I hope that helps...