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 Section's 'Overflow-x:hidden' not working

Discussion in 'Free Divi Community Forum' started by Grant Senior, Jan 16, 2024.

  1. Grant Senior

    Grant Senior Member

    Hi there, can anybody tell me why this is happening?

    On this page https://vabs-clone.thewebsiteguardians.dev/ at the bottom, below the footer, there's a scroll bar, so the page can scroll to the left, revealing blank space. I assumed this is because of the two carousel sliders on the page. To control the potential overflow I have added 'overflow-x:hidden !important; to the Divi Theme Options Custom CSS for the html and body elements and also to the Custom CSS main element for both sections containing the carousels. Normally this would work, but it's it's not, and it's not working in any browser.

    It's also happening at on this page (has a testimonials slider which also has overflow-x:hidden; added to the section. About Us - Vacuum & blowing solutions | VABS Ltd (thewebsiteguardians.dev)

    It is not happening on this page, which only has the single slider Products New - Vacuum & blowing solutions | VABS Ltd (thewebsiteguardians.dev)

    This page has the two sliders that the home page has, but it doesn't have the problem Font styling - Vacuum & blowing solutions | VABS Ltd (thewebsiteguardians.dev)

    I have the same site setup on a local XAMPP server but the scrolling issue is not present. It's really baffling.

    How do I stop the side scrolling? What's causing it? I've put controls on all of the elements that I thought might be creating the problem, but that's not really proving to me that this is what the problem is.

    If anybody can see what's going on, I'd really appreciate it!

    Cheers
    Grant
     
    1. PRO MEMBER PERKS Divi Ultimate Footer Plugin - Custom global Divi footer (20 premade styles) + Revealing footer effect:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    It seems to be caused by your header.

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

    Grant Senior Member


    Yep, that did it! Thanks. How does that work and overflow-x:hidden !important; doesn't? It's my normal, solve all problems go to solution, usually.
     
    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
  4. Grant Senior

    Grant Senior Member

    Further update to this, incase anybody is dealing with the same issue.

    Although it wortked as far as gettign rid of the side scrolling action, this code ended up screwing up the Theme Builder for me (It was hiding most of the header).
    #page-container {
    overflow: hidden!important;
    }

    So I had to get rid of it.
    On further inspection, the side scrolling behaviour was caused by the header section which I had given 'position:absolute' and selected the centre position in the module tool. Doing that assign attributes to the section css of left:50%; and transform:translateX(-50%)
    Disabling the transform and changing left to left:auto; and adding right:auto; solved it.

    So, solution was, reset the section in the sections module Advanced settings to position:default and added the absolute styles I wanted in the Custom CSS of Theme Options. This has worked and got rid of the scrolling issue.

    Thanks to Pavel at Elegant Themes support for helping me solve this too!! Wouldn't have got there without his help.