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, ...CanCan't insert image using CSS
Previous
 
Next
New Post
2/19/2009 8:59 AM
 

Place the images folder under the myskin folder

and change the path of your background to:

.teststyle

{

  background: url ('images/bg_logo.gif');

}

it should definetely work. Let me know your progress.


 

 

Portals

+_default

++Skins

+++myskin

       |___test.ascx

       |___test.htm

       |___skin.css

in skin.css


 

 
New Post
2/19/2009 6:53 PM
 

I'm trying to do the same thing and can't get it to work either.  I've tried putting the image in the images folder and referencing it both ways:  ../images (like the rest of hte images in the minimal extropy menu.css file shows) and straight images.  The images, as background, will not appear.  Is there some other CSS setting that is needed?   I am using the DNN Navigation Provider, not Solpart.

 
New Post
2/20/2009 6:38 PM
 

In an ASCX skin, an image that's directly in the skin should have <%=SkinPath%> added to it's SRC or it will not be found.

so <img src="<%=SkinPath%>myimage.gif" alt="myimage />

Image in you skin.css file are located relative to the location of the CSS file.. (no skinpath needed, since the Skin.css file is in the skin folder)

 
New Post
2/21/2009 5:06 AM
 

OK, bear with me here.

I'm trying to use a background image in a css class that is used in the DNN menu (DNNMenuNavigationProvider)..

I'm using the Minimal Extropy skin which has a menu css file in a folder below the skin.

Here's what I've tried:

1)  put image in the same folder as the menu.css class.

    CSS:

     .homeSelected
{
 height: auto;
 width: auto;
 border: thick solid #00CC33;
 background-image: url(nav_Community_active.gif);
}
 

I know it's picking up the class because the ugly border I put shows up.  But it doesn't show the image.
The css class is the last in the menu.css file. 

2) I tried putting the images in the same folder as the skin and referenced it in the menu.css class as follows:

background-image: url(../images/nav_Community_on.gif);

The image still does not appear.

3) I changed the image ref in 2 above to:

background-image: url(<%=SkinPath%>/images/nav_Community_on.gif);

And still no luck. 

How do I get the image to appear?

Thanks.

 
New Post
2/21/2009 10:37 AM
 

Hmm, the only way I  can answer that is if I can see a live example, can you post a link?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CanCan't insert image 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