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, ...CSS problemCSS problem
Previous
 
Next
New Post
9/1/2008 3:29 AM
 

I have created a new skin but somehow the css file that i have created is not getting applied.I have inserted the css file using <link> tag in the html file.After parsing the skin the css file doesn't get included in the skin.Pls help...

 

 

Thanx in advance.

 
New Post
9/1/2008 4:54 AM
 

My best trick for this is to include my own CSS into the skin.css file and not have it in a separate css file, then everything works perfectly.

/Jari

 
New Post
9/1/2008 7:43 AM
 

Everything in the head of an HTML skin gets removed if the skin is parsed (converted to an ASCX skin)

The only CSS links that are added to the head of a DNN page are Skin.css, and "MySkinName".css, but this is based on "if the files exist in the skin package" not the CSS links you add to the skin..

 
New Post
9/1/2008 7:43 AM
 
  • Remove the stylesheet link from the HTML file before creating your skin package.
  • Make  sure the stylesheet is named skin.css
  • Make sure the skin.css file is in the same location as the skin's ascx files after parsing.
  • DNN will automatically look for and load a file named skin.css from that folder.
  • Go to Host Settings and restart the application if it is having trouble.
  • If you leave the stylesheet link in the skin then DNN will load it twice and in the wrong order with the other style sheets.
  • The same goes for container style sheets, except they should be named container.css.

In additon to skin.css and container.css you can also name the sheet the same as the skin.ascx file... i.e. Blue.ascx and Blue.css will be loaded together.

If none of the above is working then something else is wrong and you'll need to come back again.

Rob

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS problemCSS problem


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