RE: Inheritance

by "Mark Martens" <mark.martens(at)>

 Date:  Wed, 28 Mar 2001 11:58:14 -0500
 To:  "'Ed Peddycoart'" <ed(at)>,
"'HWG-Style'" <hwg-style(at)>
 In-Reply-To:  celticblues
  todo: View Thread, Original
How about just defining the H6 with those characteristics...

H6 {color:white; background:blue;}

It will keep the remaining characteristics of a H6 tag, but will "inherit"
these additional characteristics.  Hope this helps.


-----Original Message-----
From: owner-hwg-style(at) [mailto:owner-hwg-style(at)]On Behalf
Of Ed Peddycoart
Sent: Wednesday, Mar 28, 2001 10:25 AM
To: HWG-Style
Subject: Inheritance

I have some HTML that I want to have the same style as H1, H2 etc. except,
say, a different color, or maybe, a little bit different margin, for
example.  I don't want to dink with the standard H1, H2, etc. parameters, so
I thought this would be a good time to inherit (? is that the correct term)
the properties of the headers into some new classes for my use.  Can someone
point me to a simple example for doing this?  For example...say I wanted to
have a class name MyH6, which had the same style as H6, except the text is
white, and the background is blue.  Thanks.


HWG hwg-style mailing list archives, maintained by Webmasters @ IWA