1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
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 Buttons and Columns Mobile Optimisation

Discussion in 'Free Divi Community Forum' started by RobertaCin, May 4, 2020.

  1. RobertaCin

    RobertaCin Member

    Dear Divi Helpers,

    now that our website is live www.sailover.net I have noticed that many features on mobile appear quite differently from the preview on DIVI and also on any desktop browser shrunk to the minimum width.

    I have a general question then: what do you use to do cross device and browser testing? Is there any free tool available?

    I would also share with you two issue:

    Issue 1 related to buttons that become too close on Iphone and Galaxy
    Issue 2: we have 8 keyfacts in two rows on desktop which in the mobile DiVI preview are appearing two per row, but actually become 1 per row in actual devices, which make the scrolling too long. Is it possible to make it work still with two per row? Or maybe it will look weird on smaller screens?

    thanks a lot in advance
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    That's because your button width is bigger than your column width.

    You may try the below CSS to make the button font size smaller in smaller screen:
    Code:
    Log In or Sign Up to view this code.
    You may try to go to the Section Settings > Advanced > CSS Class & add: dh-half-column

    Lastly, add the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    RobertaCin likes this.
  3. RobertaCin

    RobertaCin Member

    it worked but this made boxes of different sizes and the copy not fully visible sometimes. I guess I would need to make the height of the row specific for the mobile resolution correct? I can use design settings in each row.

    I am asking before trying as maybe I don't know any other css trick.

    I found the same issue in many other similar boxes on the website. so it seems like a Divi issue in general and this happens on mobile or tablet.

    thanks a lot again!
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    It's because you set a height for the text module. When the text is bigger than the height you set, it will be hidden. You should change the height of the text module back to auto.
     
  5. RobertaCin

    RobertaCin Member

    you were right. I didn't remember I set a height for that element.

    Now it works perfectly thanks! but there's an error in the heigh of the third element of each row.
    See screenshot

    I checked settings but all seems fine both in sizing and spacing
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    Not quite sure which element you're referring to.
     
  7. RobertaCin

    RobertaCin Member

    thanks for getting back.

    I am referring to the third element of each row which appears of different heights despite all is set correctly (at least I suppose it is).

    Is this a but in DIVI?

    thank you in advance
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile:Learn More
  8. Divi.Help

    Divi.Help Administrator
    Staff Member

    Since you already removed the height set for the text module, now the height should be automatically adjusted based on the content height.

    And thus, there will be difference in height between boxes.
     
  9. RobertaCin

    RobertaCin Member

    My apologies, but I don't understand.

    If I have set the height of the columns to be equal in the row settings how is this possible?

    thank you in advance
     

    Attached Files:

    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
  10. Divi.Help

    Divi.Help Administrator
    Staff Member

    Not sure what to advice on this issue. Seems like they're wrapped in display flex & the height is display oddly for some.
     
  11. RobertaCin

    RobertaCin Member

    Thanks for getting back. I will try to explain better:

    I have tried to make the rows appearing in two columns rather than one on mobile and the only code I have added is the one you suggested to me.

    Now the height of the row is different for 2 out of 8 elements despite the fact that the height is defined to be equal.

    Else I am not sure where I can look to see that "flex" setting.

    Hope it's a bit more clear now.

    thank you once again
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gallery carousel design for your Divi site without using any plugins:View Demo
  12. Divi.Help

    Divi.Help Administrator
    Staff Member

    Upon further checking, it's due to margin bottom issue.

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    RobertaCin likes this.
  13. RobertaCin

    RobertaCin Member

    Issue sorted now. Thank you very much!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo