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, ...Troubleshooting CSS filesTroubleshooting CSS files
Previous
 
Next
New Post
8/28/2011 4:21 PM
 
Is there some place I can find good documentation on how the various CSS files are used within DNN. I am teaching myself skinning, etc and having some behaviors I don't understand. Specifically, I have a css file (let's call it mystyles.css) that is part of a skin I am using. I have defined a small number of rules for the body {} selector. However, these seem to be overriden by the default.css file, which is backwards to what I would have expected.Other rules within the mystyles.css files are working fine.

I am sure this is some dumb mistake on my part - so wondered if there is some definitive guide that walks me through how DNN specifically uses the various CSS files.

By the way, I am using F12 in IE (the developer tools) but wondered if there are more effective tools to troubleshoot CSS.

Thanks.

 
New Post
8/28/2011 4:30 PM
 
Given the multi-layered CSS approach in DNN I've found the most reliable way to understand what's happening with CSS is to use a tool like Firebug (http://getfirebug.com/) to view the CSS being applied to specific elements. It will also uncover when you're style is not being applied and will show details like CSS file, path and line number making CSS troubleshooting much faster and more scientific.

That said...generally the skin file is the last one applied. So it's possible your skin is not loading your CSS or your selector is just a little off. Again...firebug can help you find and even test changes on the fly.

PS - Chrome has similar tools...I've found these both to be easier than the IE developer tools but that's just me.


Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
8/28/2011 4:46 PM
 
The IE developer tools are at the same level as FireBug for this purpose.

CSS is applied in this order: default.css, portal.css, skin.css, <skinname>.css, container.css.

NOTE!  That makes the file name VERY important.  The basic file in a skin's folder should be called skin.css.  If that folder contains a fmaily of skins then their individual uniquenesses should be in <skinname>.css.  Calling it myStyles is NOT wise.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
8/28/2011 5:25 PM
 
Oops - that order should be:

default.css, skin.css, <skinname>.css, container.css, portal.css

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
8/28/2011 5:27 PM
 
Dont forget module.css
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Troubleshooting CSS filesTroubleshooting CSS files


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