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, ...Sharing a stylesheet between different skinsSharing a stylesheet between different skins
Previous
 
Next
New Post
8/1/2008 5:00 PM
 

I have several different skins that are a variation on a theme (same basic layout but different contentpanes).  I'd like to share a stylesheet between them so that if I change something in the shared stylesheet it will affect the styling of all of the skins.  Then I would have a separate stylesheet in the skin folder to handle the skin specific styling.

I suspect one way to do this is to move all of the common styles into the Default.css file since that is already used by all skins.  I think it's safer if I specifically link to a different stylesheet, however.  That way when I make skins that shouldn't share this common styling they won't automatically get it via Default.css.

I've tried linking to a common stylesheet with:

<link rel=stylesheet href="../style.css" type="text/css">

the hope is to link to a stylesheet that is one directory up from the actual skin directory.  While Visual Studio can find the file (so I know my path is correct) it isn't incorporated in the rendering of my page.

This all seems awefully simple and yet it isn't working.  Any ideas?

Thanks very much,

BK

 
New Post
8/2/2008 4:07 AM
 

You can put all skins in one folder and use skin.css for this (and whzt you have in skin.css in "Skinname".css

Or you could use an @import at the start of skin.css and put the CSS file somewhere centrally.

 
New Post
8/2/2008 6:12 PM
 

Thanks Timo -

@Import works perfectly.

 

BK

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Sharing a stylesheet between different skinsSharing a stylesheet between different skins


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