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 problemsBackground image problems
Previous
 
Next
New Post
4/11/2006 9:28 AM
 
I have read the manual on skinning, and I have constructed a skin containing background images. I've tried using the background-image: url() tag inline and in an external CSS file. I've tried using the background="" tag in a TD. The manual said these tags would work, but they don't.

Now, of course, I'm a professional web designer, and I have no trouble with HTML and CSS. All of the other images work fine. The paths are all correct, and all the images are in the same directory. Only background images fail.

Has anyone had a similar problem?
 
New Post
4/11/2006 10:51 AM
 

Can you give some more details?  This should work, I do it all the time.

If you can post the relevant code from your skin after it has been parsed into the .ascx file, then it will help narrow it down.

Also, if you can get it on a site where we can take a look and post a link.


DotNetNuke Modules from Snapsis.com
 
New Post
4/12/2006 9:24 AM
 
<td id="header_bg" background="<%= SkinPath %>header_bg.gif" style="background-image: url('header_bg.gif'); background-repeat: repeat-x; background-position: 0 -1px; padding-right: 30px; " align="right">
    <dnn:SEARCH runat="server" id="dnnSEARCH" />
</td>


This has redundant tags, and neither works.

<div id="footer" class="copy2 width1"
        style="height: 22px; background-color: black; BACKGROUND-IMAGE: URL('footer_bg.gif'); background-repeat: repeat-x;">
        &nbsp;
    </div>

The images for header_bg.gif and footer_bg.gif are in the same directory as all other images. The parser is not adding <%=SkinPath%> to the CSS tags, but it is doing it for the TD example, and even that doesn't help.

The only way I was able to get it to work was by hosting the images elsewhere and giving these CSS tags absolute URL's.

I can't post the page itself because it's hosted locally, and not on a public web server.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Background image problemsBackground image problems


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