MEM wrote:

> All h1 that are followed by a p will have a padding-bottom of X.
>
> Is this possible?

As the discussion has shown, the practical way is to use a class. On the 
other hand, normally a page should have one h1 element (one highest-level 
heading) only, so I don't quite see why you can't just use the selector h1.

Another issue is padding vs. margin. To create spacing between a heading and 
a paragraph, it is normally best to use margin, because one day you might 
want to set background color for the heading, and then it would extend to 
the padding. Using vertical margins, you naturally need to remember that 
they "collapse".

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to