Quote:
Originally Posted by AlanHK
Even if I do
td { margin: 4em;}
there is zero effect
So, margins just don't work in tables?
|
Of course, you can't change the left/right (or top/bottom) margin of a cell because otherwise you would be displacing THE CELL to left or right (and you are in table). What you can do is
to set the margin to the contain of the cell; for that reason works what you enclosed between <p> tags. In this last case, you are displacing the "box" inside the cell and not the cell.