Forum Moderators: not2easy

Message Too Old, No Replies

Classes & Selectors

Changes to paragragh do not appear in IE

         

Css_Novice

10:29 am on May 3, 2006 (gmt 0)

10+ Year Member



Could someone please put me straight here

I have assigned a class to a paragraph ie

p.red {color: red;}

<p class="red"> This text should be red</p>

No luck

I then tried to assign the selector to a div tag ie

#red p {
color: #ff0000;
font-style: regular;
font-family: verdana;
font-size: 7.5pt
}
<div id="red"><p>This text should be red</p></div>

Does not work FF or IE and no, the selector has not been allocated to any other rule...

Either way there is no change to the color of text, could someone give me a pointer as to what Im doing wrong here... cheers guys

jessejump

12:45 pm on May 3, 2006 (gmt 0)

10+ Year Member



Those 2 examples are fine; there is something else wrong on the page.

Moby_Dim

12:53 pm on May 3, 2006 (gmt 0)

10+ Year Member



Must work in both cases.

Do other styles work or not? Check the stylesheet file link, check comments in the file (/*if these styles are here*/), check css for validity. Or did you play with some style editor plugin before this and switched off author's mode?