HighDots Forums  

why does inheritance not work with class selectors?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss why does inheritance not work with class selectors? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gertjan van Heijst
 
Posts: n/a

Default why does inheritance not work with class selectors? - 02-24-2005 , 02:35 PM






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

Reply With Quote
  #2  
Old   
C A Upsdell
 
Posts: n/a

Default Re: why does inheritance not work with class selectors? - 02-24-2005 , 02:36 PM






Gertjan van Heijst wrote:
Quote:
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?
What is the URL?




Reply With Quote
  #3  
Old   
David Dorward
 
Posts: n/a

Default Re: why does inheritance not work with class selectors? - 02-24-2005 , 03:01 PM



Gertjan van Heijst wrote:

Quote:
.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".

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.