[thelist] CSS: margin and padding?
Mark Gallagher
mark at cyberfuddle.com
Mon May 13 09:26:07 CDT 2002
Michael Galvin wrote:
> What is the difference between margin and padding in a div definition? Is
> it the same sort of deal as the cellpadding and cellspacing in a table?
Yes. However, unlike with tables, padding is added to the width of the DIV.
> Does margin (or padding) only become visible if you have a border around the
> div?
Well, it only becomes *obvious* with a border.
--
Mark Gallagher
http://cyberfuddle.com/infinitebabble/
More information about the thelist
mailing list