MEM wrote:
> Hello,
>
> Without .js, is there a way to establish a rule in CSS that says:
>
> All h1 that are followed by a p will have a padding-bottom of X. 
>
> Is this possible?
>
>
>
> Thanks a lot,
> Márcio
>
> ______________________________________________________________________
> 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/
>
>   
There is no way to do that without modifying the code a little bit. What 
you could do is define a class for the h1 elements and define the bottom 
padding as zero. Then in the html all you have to do is add that class 
to any h1 which has a paragraph after it.
Brian Hazelton
http://veridian-systems.com
______________________________________________________________________
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