Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / February 2005



Tip: Looking for answers? Try searching our database.

why does inheritance not work with class selectors?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gertjan van Heijst - 24 Feb 2005 19:35 GMT
Hi,

Trying to figure this out for some time now, but I don't get it ... I
have something like this:

.myclass {
 color: red;
}

<p class="myclass"> this is <b> some </b> text </p>

By my understanding of inheritance in CSS 'some' should be in red, but
it isn't (in IE6 at least). What am I doing wrong?

Thanks for any help, Gertjan
C A Upsdell - 24 Feb 2005 19:36 GMT
> Hi,
>
[quoted text clipped - 9 lines]
> By my understanding of inheritance in CSS 'some' should be in red, but
> it isn't (in IE6 at least). What am I doing wrong?

What is the URL?
David Dorward - 24 Feb 2005 20:01 GMT
> .myclass { color: red; }
> <p class="myclass"> this is <b> some </b> text </p>
>
> By my understanding of inheritance in CSS 'some' should be in red, but
> it isn't (in IE6 at least). What am I doing wrong?

It should be - assuming that the value of the color property for that <b>
element is "inherit".

Signature

David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                    Home is where the ~/.bashrc is

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.