Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: What are the "ctl01_" or "ctl100_" prefixes in the style.css for?

  1. #1
    shark92651 is offline Member
    Join Date
    Jan 2006
    Posts
    81

    Default What are the "ctl01_" or "ctl100_" prefixes in the style.css for?

    I had an issue converting from version 8 to version 9 and I could not get my logo to display in the top banner. Looking in the style.css file supplied with skin_1 I see this:

    #ctl01_logo
    {
    float: left;
    width: 210px;
    height: 34px;
    background: url(images/logo.gif) no-repeat center center;
    margin-right: 10px;
    display: block;
    }

    However I could not get my logo to display. In version 8 this class was just #logo. Then, someone from tech support asked me to add this instead:

    #ctl00_logo /* This is the one that actually works, don't ask me why... */
    {
    float: left;
    width: 210px;
    height: 34px;
    background: url(images/logo.gif) no-repeat center center;
    margin-right: 10px;
    display: block;
    }

    Can someone please explain the magic numbers in the prefix and just how one is to understand which to use? In the template.master it just refers to id="logo"

    Thanks

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    The #clt## is the ID of the control on the page once it renders. You don't need that for most things, we just did that for the logo and a couple of other items.

  3. #3
    UNLGroup is offline Senior Member
    Join Date
    Dec 2007
    Posts
    144

    Default

    But you guys never changed the CSS file to reflect this?

  4. #4
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    We did, yes, and should be reflected in the next.