Results 1 to 9 of 9

Thread: Modify Css

  1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
      0  

    Default Modify Css

    Hi,
    I wanna modify the css for my application, but Im new to this. Ive looked at the gxt-all.css file and Ive seen some fields with the same name so, I dont know which one is the correct one to modify. It would be helpful knowing the nomenclature followed in this file.

    One example of what Im saying is the "x-menu", which appears twice.

    thx

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    It can appear as often as needed. Importend is the content of the selectors. You should read up on how it works, there are many tutorials out there for css.

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
      0  

    Default

    But in the example I wrote (.x-menu), it appears twice with "no selectors", just

    .x-menu{
    ...
    }

    and

    .x-menu{
    ..
    }

    (the text inside is just attributes like color or something like that)

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    .x-menu is a selector.

  5. #5
    Ext User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
      0  

    Default

    well, ok, they're selectors, but are the same....

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Yes the same selector can be there as often as needed. The content is the important part.

  7. #7
    Ext User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
      0  

    Default

    you are very lazy.
    thanks for nothing.

  8. #8
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    I answered your questions. This is how css works. You can have the same selector as often as needed. They can even use the same content. The last defined rule will simple override the first one (if the rule matches).

  9. #9
    Ext User
    Join Date
    Oct 2010
    Posts
    10
    Vote Rating
    0
      0  

    Default

    ok, now I understand.
    Thanks.

Similar Threads

  1. Modify PagingToolbar
    By ajmPal in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 25 Mar 2010, 6:13 AM
  2. modify id row
    By kamakrane in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 27 Oct 2009, 6:24 AM
  3. Can we modify the lib ?
    By mmc in forum Community Discussion
    Replies: 3
    Last Post: 25 Dec 2008, 7:21 PM
  4. How to modify grid properly
    By davida in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 21 Dec 2006, 12:19 PM

Posting Permissions

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