[CLOSED] This tim this is a cosmetic problem (CSS inside)

  1. #1

    [CLOSED] This tim this is a cosmetic problem (CSS inside)

    Hello

    I use the example custom UI grid to personalize a little bit more my grid.

    All works well.

    But, I see in the CSS:

    .x-grid-custom .x-toolbar {
        background : url(images/Grid/toolbar-bg.png) repeat-x 0 0 !important;
    }
    The problem is on the x-toolbar tag. this tag seems to be used for all the toolbar and not only for the grid toolbar. By the way, I have the same CSS applied to tollbars in windows.

    How could I applied a different toolbar form between grid and window?
    Last edited by Daniil; Apr 23, 2012 at 6:35 PM. Reason: [CLOSED]
  2. #2
    Hi,

    If you set up
    Cls="x-grid-custom"
    for GridPanel the following CSS rule:
    .x-grid-custom .x-toolbar { ... }
    should be applied for ToolBars which are within that GridPanel and should not be applied for any external ToolBars. Sure, if you doesn't set up "x-grid-custom" for more elements.
    Last edited by Daniil; Apr 23, 2012 at 2:37 PM.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    If you set up
    Cls="x-grid-custom"
    for GridPanel the following CSS rule:
    .x-grid-custom .x-toolbar { ... }
    should be applied for ToolBars which are within that GridPanel and should not be applied for any external ToolBars. Sure, if you doesn't set up "x-grid-custom" for more elements.
    Good point.

    In the example i just let in the thread about the multicombox problem (http://forums.ext.net/showthread.php...0169#post80169), you will see the css problem too (I will change the code because it linked to my file).

    The window that appear first when runing code has a topbar and this bar is styled like the topbar of the grid
  4. #4
    Well, you set up
    Cls="x-grid-custom"
    for the Window.

    It means that your rules are affected for the Window as well.
  5. #5
    Damit! You're totally right...Shame on me.

    Ok, for this one, I will change that tomorrow.

    Thank you...I think you can close (I will double check next time)

Similar Threads

  1. [CLOSED] Desktop cosmetic problem, no urgencecy for now
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 24, 2012, 6:49 AM
  2. [CLOSED] Text Area inside a GripPanel problem
    By farisqadadeh in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 10, 2011, 10:00 PM
  3. [CLOSED] Fielupload Button problem inside FieldSet
    By webppl in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 28, 2011, 3:14 AM
  4. [CLOSED] Checkbox problem inside a Tab
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 03, 2009, 4:10 PM
  5. [CLOSED] IE Problem w/FormLayout inside TableLayout
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 06, 2009, 12:46 PM

Posting Permissions