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, ...Skin, css, and imagesSkin, css, and images
Previous
 
Next
New Post
8/1/2006 12:57 AM
 

I'm stuck with images.

I read the Skinning Guide and I have been successful in creating a simple skin.  However, I cannot get the parser to replace my image paths with the relative path.

Here is the line in my CSS file:

Body
{
    background-color: #FBFBFB;
    background-image: url(bg.gif);
}

And here is a line from my skin:

  <tr style="BACKGROUND-IMAGE:url(TF-Head.gif); BACKGROUND-REPEAT:no-repeat" height="140">

When parsed, neither line places the relative path for the image.

Am I missing something?

Thanks for your help,

Mike

 
New Post
8/1/2006 3:04 AM
 

It should work if you make this simple change -

<%= SkinPath %>TF-Head.gif 

Add the skin path code - if you are using a css file you don't need to do this, but it appears if you are using inline CSS you probably do.

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
8/1/2006 11:01 AM
 

Thanks.  I did do this as a workaround, but I thought the parser would detect it.  (the documentation said it would) 

I placed my images in the StyleSheet, but that didn't seem to work at first.  And then it starting working for no apparent reason.  I thought that it was cached?

Also, I just found a document at http://home.tampabay.rr.com/bmerkey/cheatsheet.htm that stated the "url" portion of the background image is a relative path from the stylesheet, not the HTML document.  Up until now, I always thought it was relative to the document. 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin, css, and imagesSkin, css, and images


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