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, ...Why does my background-image not work?Why does my background-image not work?
Previous
 
Next
New Post
8/22/2010 11:08 PM
 
I'm very new to DNN skinning, so apologies if this is obvious, but I cannot get a background-image to work in my skin.  I'm starting with the "legacy" method of creating skins, as I can't find much documentation about getting started otherwise. 

I have something like the following:

<div style="background-image: url(images/graphic.gif); width: 100%;">
    <object id="Header" codetype="dotnetnuke/server" codebase="CONTENTPANE">
    </object>
</div>

but graphic.gif refuses to show. I've tried various urls...   The file itself is currently in a folder called images in my skins folder. Looking at firebug it's being read from the wrong url, but what should I use as the url to get this to work?  
 
New Post
8/23/2010 2:57 AM
 
Use a class like  .Background and add the CSS you have inline now to Skin.css

.Background {background-image: url(images/graphic.gif)}
 
New Post
8/23/2010 4:49 PM
 
I tried that as well, but my skin.css seemed to be ignored; not just this style, but multiple styles in it, which made me think it's not an issue with default.css or any of the other DNN css files overriding my skin.css styles...

If using skin.css do I need a link to it in my .html file?  I tried with and  without (index full.html for MinimalEntropy has a link to skin.css) but both cases none of my styles seemed to work.
 
New Post
8/23/2010 7:39 PM
 
I got this working by creating a css/style.css file and then including it with:

<object id="style" codetype="dotnetnuke/server" codebase="STYLES">
    <param name="Name" value="style" />
    <param name="StyleSheet" value="css/style.css" />
    <param name="UseSkinPath" value="true" />
</object>

I'm still confused as to how to use skin.css though, so would welcome any ideas on that. :)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Why does my background-image not work?Why does my background-image not work?


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