1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    sencha99999 is on a distinguished road

      0  

    Default Unanswered: Applying Css for Button control

    Unanswered: Applying Css for Button control


    Hi,

    I am using cls property of button control to apply custom css for button but it is applying only for maindiv of button not for inner Divs. If I add classes to inner divs also using Javascript its working fine for all browsers except IE8 or below. It seems its because of extra css classes which are adding to the control to support lower version of browsers affecting the css classes which iam adding.

    How can i solve this issue?

    Thanks in advance.

    Regards,
    Shravan

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    HI!

    you may try following to add custom CSS for inner & main section of your button.

    CSS:-
    .myBtn{background:red !important;}
    .myBtn span{background:yellow !important;color:blue !important}

    Code:
    {
        xtype:'button'        
        text:"Custom CSS Button",
        cls:'myBtn',
        width:200
    }
    Output:-
    customCSSButton.png
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

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..."