Forums
>
Skinning Toolkit
>
Skinning Toolkit
Can't get style to work
Last Post 10/28/2010 6:56 PM by
Joseph Craig
. 5 Replies.
Author
Messages
Web Services
Nuke Master
Posts:322
10/27/2010 4:43 PM
Why won't this work. I'm trying to style a dnn object in the template file and changed the class so it looks like this.
[MODELNAME]
Now I noticed in the html that gets generated it looks like this
Service Membership
So in the default.css file I have this .storeTitle SPAN { font-size: 18px; color: #0B94C8; } That works fine in chrome but not in IE. Any ideas why?
Joseph Craig
DNN MVP
Posts:11667
10/27/2010 5:43 PM
This is not clear from what you posted.
But ... editing styles in default.css is not the right way to go. You should do this either in skin.css or portal.css. Since this is for a module, I'd suggest that you make the changes in portal.css.
Further, the module most likely comes with its own css file. If so, and if that style is defined in the module's css file, it will override anything that you do in default.css. If that is the case, it is why you aren't seeing any change. With CASCADING style sheets, the last loaded files override earlier files. Default.css is usually first.
Joe Craig,
Patapsco Research Group
Complete DNN Support
Web Services
Nuke Master
Posts:322
10/28/2010 8:53 AM
Sorry, I should have been clearer. I am updating my skin.css file, I just used default as a generic name, probably not the best choice. I did find the control's css page and the class that it used and edited that and that didn't work. It's not going to pull from the controls styles, because I changed the class that the control had to my custom css class. Do you have any ideas why this won't work in IE?
Joseph Craig
DNN MVP
Posts:11667
10/28/2010 5:53 PM
Could you post a URL so that I can look at the site?
Joe Craig,
Patapsco Research Group
Complete DNN Support
Web Services
Nuke Master
Posts:322
10/28/2010 6:19 PM
Ok, so I got it. Not the best solution but this is what I ended up doing. IE would detect the style when it was set to a class, but FF wouldn't. So, I did this
FF picks up the style, IE picks up the class. Not the best solution, but it works!
Joseph Craig
DNN MVP
Posts:11667
10/28/2010 6:56 PM
Glad that you got it to work.
Joe Craig,
Patapsco Research Group
Complete DNN Support
Forums
>
Skinning Toolkit
>
Skinning Toolkit