Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • vade Friend
    #140374

    Hi,

    How do you set the width of the tabs to automatically occupy the entire width of the module?

    For example, if I have only 2 or 3 tabs in the module, there will be some empty space on the right side in the tabs title. How do I configure it such that the tab titles automatically and equally expand to occupy the entire width of the module?

    fabiomartelli Friend
    #301974

    HI it’s possible.
    There are 2 way.
    1 – work with the css of the theme fixing the width of li elements (in this case u will have to use always the same numbers of tabs or clone more style (themes) for many different nubers of tags.
    2 work with file yourdomain/plugin/content/jatabs.php
    here one example
    find the function parseTabModules($params){

    and make a change
    $lis .= “<li title=””.$list[$j]->title.”” ><h3><span >”.$list[$j]->title.”</span></h3></li>”;

    into

    $lis .= “<li title=””.$list[$j]->title.”” style=”width:”.(($params[‘width’]-30)/count($list)).”px; overflow:hidden;”><h3><span >”.$list[$j]->title.”</span></h3></li>”;

    this in an example that modify the way u want only when u use the type modules…

    make attention the u may have to change the “-30” into something different depending on the theme you’re using
    Ciao

    vade Friend
    #302023

    thank you for your suggestion.

    i tried method 2 but it doesn’t seem to work. i have adjusted the “-30” both up and down but still the same.

    by the way, i’m using ja vauxite.

    fabiomartelli Friend
    #302041

    are u using jatabs with modules, articles or content…..
    can u link the url?

    fabiomartelli Friend
    #302042

    and are u usin vertical or orizzontal tabs? (my suggestion was for orizzontal…)

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  fabiomartelli 15 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum