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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0custom module, Module.css, and background-imagecustom module, Module.css, and background-image
Previous
 
Next
New Post
5/27/2009 1:21 PM
 

 So I finally found a post on here telling me that, if I wanted a stylesheet specific to a module, I had to name the .css file "Module.css"... and that works fine for stuff like sizing and background colors.  But I'm trying to create a border around a table using background images, and that doesn't seem to work.

My setup is is:

DesktopModules\[SubFolderName]\images\[images].gif

DesktopModules\[SubFolderName]\Module.css

DesktopModules\[SubFolderName]\[ModuleName].ascx / .cs

 

Typically css files will resolve URL's relative to the location of the .css file, but that doesn't seem to be the case here...

I *should* be able to, in the .css file, reference "background-image:url('images/[image].gif');"

but I guess that dnn is doing something messed up with the .css file, and so it does not resolve those URL's relative to the physical path of the stylesheet.

Can anyone help me out, please?  Do I have to store the images outside of the Module folder?  Or do I have to use the absolute path of the images? (http:\\[SITE]\DesktopModules\[SubFolderName]\images\[image].gif)  That seems... foolish... :-/

 

As usual, any ideas at all are much appreciated.  Thank you...

 
New Post
7/18/2009 7:41 AM
 

 Turns out that I still have this question... can anyone be of any help?

 

I also can't get just regular <img> tags to render properly in a custom module.  What's the correct way to do this?

 

<img src="images\[image].gif" /> = fail.

Thank you...

 
New Post
7/18/2009 9:29 AM
 

you need to replace [image] with the image name (omitting the square brackets in the file path.

And please use slash "/" instead of backslash "\" within URLs


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0custom module, Module.css, and background-imagecustom module, Module.css, and background-image


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