Results 1 to 2 of 2

Thread: Using of CSS in Extjs

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Milano
    Posts
    98

    Default Using of CSS in Extjs

    Hi,
    I am new in extjs and I am trying to change some CSS standard in my web application.

    I am trying,in this moment,to use this code :

    Code:
    var el = Ext.getDom("enterBtn");
            Ext.DomHelper.applyStyles(el,'font:normal 22px tahoma, verdana, helvetica;');
    where 'enterBtn' is a button on a FormPanel
    I only want to make this (change from 11px to 22px the font dimension of the button) to check how is the use of CSS inside Extjs, but the Firebug console say me : ' el is null' ......?!?!

    Why???

    How can I make change to css inside extjs???

    Thanks a lot

  2. #2
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default

    I think you should with firebug or chrome developer tool or other look through html and
    and find out css class.
    Than change this class in css file.

    Of cource it is possible to do it dinamic, but I think you want to do permanent changes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •