Question about padding and margins
Sent by Zoe M. Gillenwater on 4 May 2005 19:07
Linda H wrote:
> Thank you Adam and others for responding to my question. I wasn't as
> clear as I should have been. I do understand the box model and what
> the differences are between padding and margins. I was wondering if
> there were some rules of thumb for which is better to use when it
> doesn't make any difference visually (no background, or background is
> set in a higher level box, and no border). I suppose that thinking
> about possible future redefinition of the style sheet or which is
> quirkier would influence choices.
If there is no visual difference between the two in a particular
situation, then it is really just a personal choice at that point.
> Are collapsing margins quirks or features? Where can I read about them?
Features. You actually expect and want adjacent vertical margins to
collapse; you just don't know you do. :-) This article provides a good
> Also, can anyone point me to a good tutorial on Doctypes, please?
Our wiki contains lots of info and links:
This is my favorite article on the subject in general:
Zoe M. Gillenwater
Highway Safety Research Center
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/