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, ...Is there any path assignment can be used by skin.css?? Is there any path assignment can be used by skin.css??
Previous
 
Next
New Post
9/18/2006 2:19 PM
 

Is there any path assignment can be used by skin.css ?

Just likes <%= SkinPath %> can be converted to the skin path in the asc file.

Is there any token can convert to the skin path or else(portal root, etc...) and can be used in the container.css or skin.css?

 
New Post
9/18/2006 2:24 PM
 
Ive wanted to do the same but ended up adding my style to the skin page itself.

DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
9/18/2006 2:32 PM
 


CSS files do not get processed by ASP.Net, they get sent directly from IIS, so it is not possible to have server side code in the CSS file (unless you map it in IIS).

The good news is you don't need it.  Every path from a CSS file is relative from where the CSS file is.

So if your CSS file is in the Skin Folder, then you are already there. If you want to reference a background image that is in a folder under the skin folder you can do it like this in the CSS file:

.MyClass {
background:url(images/myimge.gif);
}

 


DotNetNuke Modules from Snapsis.com
 
New Post
9/18/2006 4:55 PM
 
well there are cases like when your css may change dynamically.

DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
9/18/2006 7:01 PM
 

dstruve wrote
well there are cases like when your css may change dynamically.

I don't know what this means.  Can you give me an example?


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Is there any path assignment can be used by skin.css?? Is there any path assignment can be used by skin.css??


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