----- Original Message ----- From: Conjurer <[EMAIL PROTECTED]> Date: Thursday, May 17, 2007 6:59 am Subject: Re: [css-d] Inheritence Problem To: Robert Tilley <[EMAIL PROTECTED]>, Css-Discussion Group <css-d@lists.css-discuss.org>
> I have never seen an <h3> tag nested inside a <p> tag. Perhaps > therein > lies your problem. Usually <p> tags inherit from <h> tags because > headers are above paragraph levels. > > Robert Tilley wrote: > > I am using the Konqueror 3.5.6 browser on Kubuntu Linux. I need > text > > displayed as white against a dark background. My initial code > applied the > > color: property to the paragraph. This does not work: > > > > <p style="text-align: center; color: white;"> > > <h3>Title of Page</h3></p> > > > > The solution was to place the color: inside the <h3> tag. > > > > <p style="text-align: center; color: white;"> > > <h3 style="color: white;">Title of Page/h3></p> > > > > Everything I've read on the 'net says that the h3 should inherit > "color: > > white;" from the parent, p, tag. Both h3 and p are inline elements. > > > > What's happening? > > > > Thanks, Bob Paragraphs and headings don't inherit anything from each other - they're unique, separate things. They both inherit from body and html, though. David [EMAIL PROTECTED] authenticity, honesty, community ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/