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.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Breakpoint bug on a tricky H3

Discussion in 'Free Divi Community Forum' started by Pierrefrn, Sep 2, 2024.

  1. Pierrefrn

    Pierrefrn New Member

    Hi,
    I'm having an issue with a H3 block ( green block composed of 3 black blocks : one logo, one title and one separator, screenshot n°1 ).

    The display is correct on desk screen, correct on mobile and for some tablets with 980px width. But when i test it on my Ipad pro, i get this kind of result ( screenshot n°2 ).

    I know that it comes from a bad configuration of breaking point, and as this block is kind of tricky.

    I'm trying to adjust mediaqueries but it gets definitely to difficult for me.

    Can somebody give me a hand on this please ?

    Thanks in advance,

    Pierre
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Divi Booster

    Divi Booster Divi Expert

    Hey Pierrefrn,

    Are you able to share a link to the page you're working on? It's hard to tell what is needed to solve it without seeing it in action.

    Thanks!
     
  3. Pierrefrn

    Pierrefrn New Member

    Hi,
    Of course here's the URL : https://www.universdigitalalpha.eu/
    I only have the issue with the H3 titles with the separator and the little icon on the left, i couldn't figure out how to get this result without adding negative margin and stuff.
    my idea would be to add some css mediaqueries to correct the display but i don't really know how.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gallery carousel design for your Divi site without using any plugins:View Demo
  4. Divi Booster

    Divi Booster Divi Expert

    Hi Pierrefrn,

    Thanks for the link.

    I can see you're moving the image, text and divider module into position using a CSS translate (possibly applied using the "Position" options in the "Advanced" tab of the module settings. While this can work well at certain screen sizes, it is a bit of a pain to get this to work responsively across all screen sizes (as you're seeing). It would be possible to correct this to an extent with media queries, but the result won't be particularly smooth.

    Can I suggest a different approach? First, reset the position options on the image, text and divider modules to get the modules to go back to their original positions (you may want to make a copy of one of the rows to test this on before committing to it). Then go into the row settings and open the settings for the first column. Under:

    Column Settings > Advanced > Custom CSS > Module Elements > Main Element

    Add:

    width: 100px !important;

    You may want to adjust this value, but what it will do is make the first column thinner - just wide enough for the icon - and in doing so the second column will move over to the left into the desired position. Then as long as the second column is wide enough for the longest title, it should display it without wrapping. (If you need to make the second column wider you can do so by adding a width to it in the same way.

    To keep the icon beside the title on mobile, in the ROW settings at:

    Row Settings > Advanced > Custom CSS > Module Elements > Main Element

    Add:

    display: flex;

    There might be a bit of tweaking required, but it should be a lot easier to manage that the Position approach.
     
  5. Pierrefrn

    Pierrefrn New Member

    Hi,

    Thanks for this idea, i knew i was doing it wrong but i just realised it while testing it on my Ipad. I'm going to try your method wich seems much easier ! Thanks again !
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  6. Divi Booster

    Divi Booster Divi Expert

    You're welcome, Pierrefrn. Good luck and give me a shout if you need any further help with it.
     
  7. Pierrefrn

    Pierrefrn New Member

    Well i can confirm you that it's working much better, i've totally forgotten the column feature, what a relief !
    Thank you for this solution, it was a great idea !
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  8. Divi Booster

    Divi Booster Divi Expert

    Very pleased to hear it! Glad it's working well for you, Pierrefrn :)