1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, 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

6 Keyfacts/ 3 columns 2 rows on mobile and tablet

Discussion in 'Free Divi Community Forum' started by RobertaCin, Apr 10, 2020.

  1. RobertaCin

    RobertaCin Member

    I have 6 keyfacts in 2 rows and I am trying to apply this tutorial https://joshhall.co/how-to-keep-columns-on-mobile-in-divi/

    so the code i added in custom ccs is this


    @media only screen and (max-width: 980px) {
    .three-columns .et_pb_column {
    width: 33%!important;
    }
    }

    @media only screen and (max-width: 479px) {
    .three-columns .et_pb_column {
    width: 50%!important;
    }
    }

    I also added "display: flex;" for tablet and mobile view in the Advanced settings Tab (applied to the row)

    Row height is defined to 230px across all devices

    Is it possible to have 2 columns and make the second row float to the left just on mobile?

    Please note also there's a difference on how the section looks like in the backend editing and when visited not as an editor squeezing the browser. Which one I should consider best?

    In order to distance the modules/elements if needed do I need to work in detail on each of the across all divices?

    Else the sections has an awful overlapping with the section below, a section title with radial fading.
    How is that possible? On desktop there's no section overlapping. How can i fix it?
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade horizontal timeline design for your Divi site without using any plugins:View Demo
  2. RobertaCin

    RobertaCin Member

    I switched to 8 keyfacts in total which had a css already setup and it works. still interesting of there are solutions for the 6 columns, thanks
     
  3. Divi.Help

    Divi.Help Administrator
    Staff Member

    Based on this CSS, if you add the three-columns CSS Class to the Row Settings, then in screen size below 479px, it should change into 2 columns. If you wish to make the 2 columns appear in larger screen, then you just have to edit the 479px. It is the breakpoint for changing into 2 columns.
    Sometimes, custom CSS might cause the difference between Visual Builder & live site. So, it's best for you to check the live site for more accurate view.
    You can just add padding to your column CSS. Check out the below CSS:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi Cart Count Plugin - Easily add cart count to your Divi cart icon. 6 different styles to choose from:Learn More
  4. cbgz

    cbgz New Member

    I have a similar problem.

    I have three columns and want to show it as two columns on mobile. I used this code:

    But it looks like this on mobile... it just works for the first 4 images/buttons, but it doesn't work for the last two..

    Please help :)
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    Kindly share your URL.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gallery carousel design for your Divi site without using any plugins:View Demo