1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Divi tabs

Discussion in 'Free Divi Community Forum' started by Zuzanna, Sep 18, 2019.

  1. Zuzanna

    Zuzanna Member

    Hi,

    I have a 3 column situation, where in the first column I want to add a tab module.

    The problem is that divi makes it automatically one below another (see attachment) and I want the tabs to be next to each other.

    I know there is no much space, but I have only 2 tabs with very short phrases.

    What custom css should I put?

    Thanks in advance!

    Cheers,
    Sue
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  2. Zuzanna

    Zuzanna Member

    oh! and can I hide text on start? - user would have to click on the 'tab text' to display 'body text'?
     
  3. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    Don't think you can do that. It will require custom JS code to achieve that.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade logo carousel design for your Divi site without using any plugins:View Demo
  4. Zuzanna

    Zuzanna Member

    Unfortunately it only centers tab titles.
    I have tried to put css code to main element customs css, totab controls, tab

    here is a link: https://dana.lu/pl/?page_id=49066
     

    Attached Files:

  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    Couldn't view your page. Perhaps it's in draft. Try to publish it.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    I tried the above CSS in browser inspector & got this:

    upload_2019-9-20_12-32-47.png

    It seems like you haven't add the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    But it's oddly aligned due to a bug in previous Divi version (duplicated link tag). You can try to update Divi to the latest version & it will then look like the below:

    upload_2019-9-20_12-34-27.png
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  7. Zuzanna

    Zuzanna Member

    Thanks! It's almost perfect.

    So for other people, that would search this topic:

    Here is a nice tutorial about:
    "Equalising the tabs in the tab module"
    https://divisoup.com/equalising-the-tabs-in-the-tabs-module/

    You have to go to divi tab module > custom css > css class: "equal-tabs"

    Than in Dveme Theme Option > Customs css
    add this code (thanks to divi.help stuff of course)

    /*---------- [Equalise the Tabs - 'o mnie' page] ----------*/
    .equal-tabs .et_pb_tabs_controls li {
    width: 50%; /*change width of tabs here depending on the number of tabs you have*/
    text-align: center;
    }
    @media screen and (max-width: 768px){ /*change device breakpoint here depending on the number of tabs you have*/
    .equal-tabs .et_pb_tabs_controls li {
    width: auto!important;
    float: left!important;
    }
    }



    Is it possible to change this gray backgroud to white? Or make the tabs equal width on mobile?
    On desktop there is this perfect thin gray line, which unfortunalety disappeared on mobile
     

    Attached Files:

  8. Zuzanna

    Zuzanna Member

    ok, I changed this gray backgroud to white by simply adding this code:

    .equal-tabs .et_pb_tabs_controls {
    background-color: white;
    }


    If u know how to make the tabs equal and centered (and divided by some kind of border) - it would be very much appreciated.

    Cheers!
     

    Attached Files:

    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  9. Divi.Help

    Divi.Help Administrator
    Staff Member

    Instead of your previous CSS, try the below:
    Code:
    Log In or Sign Up to view this code.