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, ...Background image wonBackground image won't show
Previous
 
Next
New Post
5/14/2007 5:39 PM
 

I can't get the background image to appear in my skin. Here's the code I'm using in the style sheet:

Body{
    background-image: url("<%=skinpath%>background.gif");
    background-repeat: repeat;
    background-position: top;
}

 

I've also tried this:

Body{
    background-image: url("background.gif");
    background-repeat: repeat;
    background-position: top;
}

I've tried it without the quotes, in a subdirectory, etc. etc. etc. What the heck is going on?

 

 
New Post
5/14/2007 7:56 PM
 

The <%= SkinPath %> tag is used when placing an image directly into your ascx file.  Your 2nd try is probably the best method for you.  Is the image file in the same directory as your css file? Is it up one directory?  If so, you may need to change this ("background.gif") to ("whateverfolderimageit isin\background.gif)  If the image is 2 direcotries up, you would need to then reference it like this (..\whateverfolderimageisin\background.gif")  Hope this helps.

Paul

 
New Post
5/14/2007 8:05 PM
 

Hi Paul, thanks for the response.

My background.gif file is included in the same directory as the skin's HTML, Style Sheet and XML files. In fact, all the files in the skin are in the same directory (there are only 2 images included).

If I take my skin's HTML file and add the background="background.gif" attribute to the body tag and open it in a browser, the background shows up, so I know there isn't anything wrong with the file.  (FWIW, I don't include body or HTML tags in my actual deployable HTML file).

 
New Post
5/15/2007 1:54 AM
 

You should place a spacer image (means invisible contents) in the td for which you to display the backgroud image.

background image or color is displayed only if you have some contents in the cell. otherwise these attributes of the style does not apply.


"Knowledge Sharing Matters!"
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Background image wonBackground image won't show


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