[thelist] 2 CSS Questions

Mark Howells webdev at mountain.ch
Fri Aug 16 12:46:01 CDT 2002


> h1, h2, h3, h4, h5, h6, h7.mail {
> background: #fff;
> color: #000;
> font-family: verdana, helvetica, arial, "sans serif";
> }

This will apply the style rules to all of the elements in the list -- i.e.
<h1> to <h6> and <h7 class="mail"> (though <h7> is not a valid HTML tag and
so this might not work).

> DIV.mail td p {
> background: #fff !important;
> color: #000 !important;
> font-size: 12pt !important;
> font-family: verdana, helvetica,  arial, "sans serif";
> padding: 10px !important;
> }

This will apply the style rules to a paragraph which is inside a td which is
inside <div class="mail">. To apply the style to the <div>, the <td> AND the
<p>, you'll need to use

DIV.mail, DIV.mail td, DIV.mail td p {...}

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list