View Single Post
  #1 (permalink)  
Old 05-03-2008, 03:59 PM
dhruvahuja
 
Posts: n/a
Diggs:
Default selector for element with multiple styles

Hi

I have an element with multiple class styles. Lets say, <p class="style1
style2">Hello World</p>. Now when I choose to add a new CSS Rule to this
snippet, of the Advanced type, the Selector turns up to be ".style1 style2" and
does not work. Give it a try. I'm working in Dreamweaver CS3.

Looking up in http://www.w3.org/TR/REC-CSS2/selector.html suggests that it
should rather be ".style1.style2". Please search for "pastoral blue aqua
marine" on that page to look at the example which led me to that.

Comments?

Thanks

Dhruv



Reply With Quote
Sponsored Links