1. #1
    Ext User
    Join Date
    Dec 2007
    Posts
    9
    Vote Rating
    0
    alanqueiroz is on a distinguished road

      0  

    Default Center ContentPanel Header Text

    Center ContentPanel Header Text


    I would like to center the header text of ContentPanel. If I create a css class and add to the header object, it works:

    Code:
    / / MyCss.css
    .centerTextAlign (
     text-align: center;
    )
    
    ContentPanel gridContainer = new ContentPanel();
    gridContainer.getHeader().addStyleName("centerTextAlign");
    But why this:
    Code:
    gridContainer.getHeader().setStyleAttribute("text-align", "center");
    or this:
    Code:
    gridContainer.getHeader().getElement().getStyle().setProperty("text-align", "center");
    does not work?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You need to set it this way:

    Code:
    getHeader().setStyleAttribute("textAlign", "center");

  3. #3
    Ext User
    Join Date
    Dec 2007
    Posts
    9
    Vote Rating
    0
    alanqueiroz is on a distinguished road

      0  

    Default


    Thank you!

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..." hd porno faketaxi