Results 1 to 7 of 7

Thread: Spacing between Tabs

  1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    -2
      0  

    Default 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
    Bédoin/Redwood City
    Posts
    30,626
    Vote Rating
    56
      0  

    Default

    Try some CSS based upon the structure you see in Firebug.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  3. #3
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    -2
      0  

    Default 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
    Bédoin/Redwood City
    Posts
    30,626
    Vote Rating
    56
      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.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  5. #5
    Ext User
    Join Date
    Feb 2009
    Posts
    51
    Vote Rating
    -2
      0  

    Default 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,246
    Vote Rating
    123
      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
    -2
      0  

    Default Really thankful - it worked

    Thanks again. this solution really worked

Posting Permissions

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