Hi Linda.

The main practical difference between padding and margins is
background colour (or backround image). Use padding and you'll see the
element's background around its content (which could of course include
white space). Margins force elements apart, so you will see a gap
between background (where any background on a containing element such
as <body> will show through). If both styled element and its container
have white or no background, then the choice is yours, though a little
padding around text <div>s is usually a good idea.

HTH

On 5/4/05, Linda H <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> There are times when you can get a desired result using either padding or
> margins. Is there any reason why one or the other is better?
> 
> Linda Hobbet
> 
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to