RE: Inheritance

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

 Date:  Wed, 28 Mar 2001 11:58:14 -0500
 To:  "'Ed Peddycoart'" <ed(at)celticblues.com>,
"'HWG-Style'" <hwg-style(at)hwg.org>
 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.

Mark

-----Original Message-----
From: owner-hwg-style(at)hwg.org [mailto:owner-hwg-style(at)hwg.org]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.

Ed

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