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, ...CSS wonCSS won't execute in Text/HTML module
Previous
 
Next
New Post
10/21/2006 5:34 PM
 
This is the code in skin.css:
---------------------------

.iconlist    {
    list-style: none;
    margin: 0;
    padding: 0;
}

li.redarrow    {
    background-image: url(redarrow.jpg);
    background-repeat: no-repeat;
    background-position: 0.1em;    /* vertical positioning of arrow */
    padding-left: 1.5em;                /* margin between arrow and text */
    margin-left: 3.0em;                /* how much to indent the list */
}

This is the code in the Text/HTML module:
------------------------------

<ul class="iconlist">
    <li class="redarrow">Item #1</li>
    <li class="redarrow">Item #2</li>
    <li class="redarrow">Item #3</li>
</ul>

This code works fine as an html file and runs in any browser.  It displays the red arrow icon with the text positioned nicely beside each arrow.

When I put this code into a Text/HTML module it fails to execute.  It renders a normal list with the default "block" image in place of the red arrow.

I have been fiddling with this code all day and can't figure out why it won't work.  I am running DNN 4.3.5.  Anyone have any clues to what I might be doing wrong?


Thomas Herod
www.ForexTurtle.com


Forex training resources
 
New Post
10/24/2006 3:16 AM
 
I guess the browser cannot find the image, since skin.css is included in the default.aspx file.
Your link to the redarrow.jpg would only work if it would be in the same folder as the default.aspx file, or you will have to include the complete path from that location (better option).

 
New Post
10/25/2006 8:52 PM
 

The Default.aspx is the fil that executes for every page request to your site and is in the root of your site. A block image appears because the page can't find the image in the path you have specified, which is the root of your site.

background-image: url(redarrow.jpg);

But in fact your image is stored in your images folder under your skins folder.

You can fix this by modifying the image path in your CSS definition or copy the image to the root of your site. Better solution is to define the right path to image file in the CSS definition.

background-image: url(/pathtoimage/redarrow.jpg);

Example of path to images for a skin: /Website/Portals/_default/Skins/skinname/images/redarrow.jpg

A better solution would be to use the following CSS Definition

list-style-image: url(/pathtoimage/redarrow.jpg); instead of the background option that you have used


AGM
infotechniq Inc.
Technology Solutions for Small Business.
www.infotechniq.com

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS wonCSS won't execute in Text/HTML module


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