1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    0
    sseetharaman is on a distinguished road

      0  

    Default Spacing between Tabs

    Spacing between Tabs


    Is there a way to increase the space (width) between tabs. I have tabs in my application like Tab1 and Tab2. I want the space between the tabs to be increased. They seem to be very close to each other.

    any ideas?

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,458
    Vote Rating
    20
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    Try some CSS based upon the structure you see in Firebug.

  3. #3
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    0
    sseetharaman is on a distinguished road

      0  

    Default CSS involved in my 2 tabs

    CSS involved in my 2 tabs


    <ul id="ext-gen26" class="x-tab-strip x-tab-strip-top">
    <li id="ext-comp-1008__tab1" class="x-tab-strip-active">
    <a class="x-tab-strip-close" onclick="return false;"/>
    <a class="x-tab-right" onclick="return false;" href="#">
    <em class="x-tab-left">
    <span class="x-tab-strip-inner">
    <span class="x-tab-strip-text">CID NAME CHG</span>
    </span>
    </em>
    </a>
    </li>
    <li id="ext-comp-1008__tab2" class="" style="">
    <a class="x-tab-strip-close" onclick="return false;"/>
    <a class="x-tab-right" onclick="return false;" href="#">
    <em class="x-tab-left">
    <span class="x-tab-strip-inner">
    <span class="x-tab-strip-text">CMR MOVE</span>
    </span>
    </em>
    </a>
    </li>
    <li id="ext-gen27" class="x-tab-edge"/>
    <div id="ext-gen28" class="x-clear"/>
    </ul>

    Could you please help me which of this css class I have to fix to get more spacing between the two tabs?

    I have two tabs with the text CID NAME CHG and CMR MOVE and I need more spaces netween the two tabs.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,458
    Vote Rating
    20
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    So, more margin-right on <li> elements which are contained in a <ul> which has the class "x-tab-strip"?

    Add a rule to your stylesheet.

  5. #5
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    0
    sseetharaman is on a distinguished road

      0  

    Default No luck with CSS fix

    No luck with CSS fix


    I did not have any luck in figuring out as how to change the CSS to get more spacing between the tabs. Please if any one know the solution, can you share the code?

    Thanks in advance

  6. #6
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    41
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Try:
    Code:
    ul.x-tab-strip li {margin-right: 10px;}
    (which is what Animal said!)

  7. #7
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    0
    sseetharaman is on a distinguished road

      0  

    Default Really thankful - it worked

    Really thankful - it worked


    Thanks again. this solution really worked