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...Administration ...Administration ...Background image not appearing using cssBackground image not appearing using css
Previous
 
Next
New Post
8/27/2006 1:47 AM
 

Normally you set a body background (a image or a color), something like this:
body{ border:0; margin:0px 0px 15px 15px; padding:0; height:100%; background-image: url(images/bg.gif);}

But if you use a skin or you've bought a skin with a table that fill the whole page with for instance a style like this
.PageCntr {background-color: #ffffff;}
<body>
  <table class="PageCntr" width="100%" heigth="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td>Your content goes here.</td></tr>

  </table>
</body>
then the background body style have no effect because the background-color of the table overwrite the background of the body.
You have to examinate the whole skin...
Is that what you are trying to say?...


Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
8/27/2006 2:11 AM
 
John Mitchell wrote

 

DNN does not parse the CSS files.  It'll work like normal CSS with the path being relative to where the css file is.

Here is a post about how to do it in the skin.ascx file if you want the path to be processed by DNN

http://blogs.snapsis.com/PermaLink,guid,105f8d79-ffbc-4859-836c-b747364fa59c.aspx

 



Although the DNN Skin Guide PDF says:

"The Skin Uploader will manage the relative paths for the following HTML tags (contained in either HTML or ASCX files ): IMG SRC, TD BACKGROUND, SCRIPT SRC. It will also manage the relative paths for the following style sheet (CSS ) tag: BACKGROUND-IMAGE:URL(). In order to support the output of the widest variety of HTML editors, the order of the tag attribute specification is not important to the Skin Uploader."

I have not had much luck with it. To get images to show up properly I have had to result to hacks like the one that John mentioned.

email: MY USER ID at gmail dot com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Background image not appearing using cssBackground image not appearing using 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