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 2 of 2

Thread: Ajax mini cart css

  1. #1
    brianperry is offline Member
    Join Date
    Sep 2005
    Posts
    41

    Default Ajax mini cart css

    why does the css class id for the mini cart keep changing? we style it then a few days later it changes names?

    The following css id's are the ones that change. Its the second number that changes:

    e.g., #ctl00_ctl08, #ctl00_ctl09, #ctl00_ctl10, #ctl00_ctl11 (they seem to fluctuate between 108-111 for the second number)


    #ctl00_ctl08_pnlMinicartHeader {background:transparent url(../Skin_1/images/shopping-cart_bg.jpg) top right no-repeat; height:24px; padding:7px 12px 0 0; width:300px; clear:both; margin:0 0 0}
    #ctl00_ctl08_lnkViewMiniCart {float:right}
    #ctl00_ctl08_lblItemCount {float:right}
    #ctl00_ctl08_pnlMinicartControl {width:300px; background:#f7f7f8; border:1px solid #e9e7e7}
    .mini_cart {padding:10px}
    #ctl00_ctl08_UpdatePanel1 {width:300px}
    #ctl00_ctl08_UpdatePanel1 div {width:auto; clear:both}

  2. #2
    Vortx is offline Junior Member
    Join Date
    Feb 2010
    Posts
    22

    Default Try CssClass

    That list of id's can change because that's what Asp.Net does to element id's in many cases.
    What you need to try to do is put a class on the element that you want to style. Use the CssClass attribute to set the class on the asp element.