Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Need Help with CSS: Color Change Works in FF, Not IENeed Help with CSS: Color Change Works in FF, Not IE
Previous
 
Next
New Post
1/31/2009 5:00 PM
 

I have a skin that has a column with a non-contrasting background color.  The headers of the modules in this column blend in to the background color.

To prevent myself from having to create duplicate module designs just for this column, and having to train my clients on how they have to change these designs, I have done the following in CSS to change the color of the headers.

.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_title > .Head,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane > .Head,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane > .SubHead,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane > .SubSubHead,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane div div div div p a:link,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane div div div div p a:visited,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane div div div div p a:active,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane div div div div p a:hover,
.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane div div div table tbody tr td > .SubHead{color:#000066;}

The thing of importance here is that the previous snippet works perfectly in FireFox 3.  However, not in IE 7.  It appears to be simple enough, but isn't working.  Anyone have any input as to why?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/1/2009 6:22 PM
 

Will there is a very sinple explanation for this.

IE sucks when it comes to CSS standards, IE7 is already better then IE6, but it's still way behind.

You can see CSS browser support here: http://www.quirksmode.org/css/contents.html

As you can see IE7 should support the >, but I think you will have to use an XHTML doctype

(and it will not work in IE6)

I suggest you give the SubHead a double classname so you can address it that way.

Example: <h2 class="SubHead SubHeadFirst">My Subhead</h2>

CSS:

.ssd_containerwrapper_250 .ssd_elementwrapper.ssd_contentpane div div div table tbody tr td .SubHeadFirst{color:#000066;}

 

 

 
New Post
2/3/2009 4:46 PM
 

Ah... That explains it. I have never used > in my selectors before. Thanks!


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/9/2009 8:03 PM
 

Not that you expect any other result, but I just changed the aforementioned CSS snippet to not use the > operator, and all is well.  Thanks for your help.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Need Help with CSS: Color Change Works in FF, Not IENeed Help with CSS: Color Change Works in FF, Not IE


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out