inline Style Sheet (ascx) control
Last Post 07/31/2007 3:45 PM by NetCoder302. 2 Replies.
Author Messages
NetCoder302
Nuke Newbie
Nuke Newbie
Posts:3


--
07/31/2007 3:33 PM

    Hello,

    I have an AJAX rating control in an update panel on my Poll.ascx web control. The control is working fine except when I switch user logins, or navigate to different pages within my DNN site.  I've placed the following code:

    <style type="text/css">

    /* ****************** Some basic stuff ****************** */

    li {
    clear:both;
    margin-bottom:1em;
    border-bottom:1px solid #eee;
    }

    /* ****************** RatingStar ****************** */

    .ratingStar

    {
    white-space:nowrap;
    margin:1em;
    height:14px;
    }

    .ratingStar .ratingItem {
    f
    ont-size: 0pt;
    width: 20px;
    height: 20px;
    margin: 0px;
    padding: 0px;
    display: inline;
    background-repeat: no-repeat;
    cursor:pointer;
    }

    .ratingStar .Filled {
    background-image: url(images/ratingStarFilled.gif);
    }

    .ratingStar .Empty {
    background-image: url(images/ratingStarEmpty.gif);
    }

    .ratingStar .Saved {
    background-image: url(images/ratingStarSaved.gif);
    }
    style>


    When I navigate to a seperate page within the site, and come back to my rating module, the graphics contained in the rating control have disappeared. The functionality behind the control is working ok, even though the stars are not rendering.  I have the style sheet (above) placed at the top of the ascx file.  I have also placed this style sheet in the default.css, portal.css,  and skin.css, to no avail.

     Thanks in advance for any advice on this!

    Larry

    Joseph Craig
    DNN MVP
    Posts:11667


    --
    07/31/2007 3:42 PM
    Have you tried putting the styles in module.css.

    Take a look at the tutorial on Troubleshooting DotNetNuke Skins.  I've found that the Web Developer's Toolbar mentioned there to be a very useful tool to help me understand how all of the style sheets interact and interfer!

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    NetCoder302
    Nuke Newbie
    Nuke Newbie
    Posts:3


    --
    07/31/2007 3:45 PM
    Yes, I tried placing them in the module.css as well, did not work. The graphics do render correctly when I first login. As soon as i navigate away from the poll web control, and come back or login with a different user the graphics vanish. Thanks!


    ---