1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Question CSS background image from sprite - show on tree and panel

    CSS background image from sprite - show on tree and panel


    I have a viewport that provides the user with a tree panel containing available applications. When the user clicks on a tree node, it loads the application into a card panel. What I am trying to do is assign the same icon from my sprite to the tree node and the panel header icon.

    I set the classes to "x-admin x-admin-sample" for both the node and panel. Since I am not a css expert, the best that I have been able to accomplish is the following:

    Code:
    .x-admin{background-image: url(/includes/app/admin/images/admin-sprite.gif) !important;}
    .x-tree-node-leaf .x-admin-sample{background-position: -8px -8px !important;} 
    .x-panel-tc .x-admin-sample{background-position: -8px -4px !important;} //the panel is messing with position
    1) Is there anyway that I can avoid having to set multiple positions to get the same icon? It seems as though the panel is offsetting the background image.
    2) Is there a better way to avoid setting !important for each css entry?

    I realize this is not a CSS forum. However, I am raising this issue in the Ext community since it seems strange that I have to use a non-standard position for the image within a panel.

    Thank you for any guidance.

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    bump

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    anyone?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi