Re: [css-d] Controlling text spacing: margin, padding or line-hei ght

2005-11-08 Thread Adriano Castro
> Margins can collapse into each other. So if something has a 10px > margin bottom, and the following element has a 10px margin top you > would expect there to be a 20px space between the elements. However > there will only be a 10px space. Maybe this > (http://www.researchkitchen.de/blog/archives/

Re: [css-d] Controlling text spacing: margin, padding or line-hei ght

2005-11-08 Thread Justin Reid
> Many thanks for your suggestion. A question why use padding? Why not margin? Margins can collapse into each other. So if something has a 10px margin bottom, and the following element has a 10px margin top you would expect there to be a 20px space between the elements. However there will only be

Re: [css-d] Controlling text spacing: margin, padding or line-hei ght

2005-11-08 Thread Adriano Castro
> You may want to remove that first-line class and just style all s with > top padding. Or, if you want extra space between the h1 and the first > paragraph, keep the class in place and just define extra padding for it, but > still define top padding for all the paragraph elements. However, the key

Re: [css-d] Controlling text spacing: margin, padding or line-hei ght

2005-11-08 Thread Pringle, Ron
> I want to control the spacing of my text but I'm not too sure > whether I should use margin, padding, line-height or a combination of > these three. You may want to remove that first-line class and just style all s with top padding. Or, if you want extra space between the h1 and the first par