1. PROMO Get 60% OFF Lifetime Pro Membership & access all our Pro Divi Extensions, Divi Layouts, Divi AI Generator, Divi Block, etc.VIEW PRICING
Dismiss Notice
UPDATE Custom Color Scheme + Premade Divi Layouts - A perfect combination to boost productivity. New 'Gadget Repair' layout added.Try our Custom Color Layouts
BEST Divi Block - A revolutionary online drag & drop tool to easily mix & match 478+ premade blocks to kick start your Divi site design. Special module designs are included as well.
Learn MoreTry Free Version

Solved Whole section position fixed

Discussion in 'Free Divi Community Forum' started by Maecy, Jul 6, 2019.

  1. Maecy

    Maecy Member

    Why is it that when I try to put position fixed on my banner section, the next section completely overlaps it?
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Digital Marketing' Divi layout for all Pro members:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Go to your section settings & set a higher z-index in the Advanced tab.
     
  3. Maecy

    Maecy Member

    But what I want is when the user scrolls down the page, the first section will stay and the second section will overlaps it.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Now I understand what your issue is. That's how position fixed works. It will be considered as no spacing in its original place. That's why it will immediately overlap the second section.

    To make the fixed element has its own spacing in the original place, try to use plugin like this to make it sticky: https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
     
  5. Maecy

    Maecy Member

    But the plugin only allows 1 class id. and I have different id for my sections
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    I believe you can set CSS Class as well. Just set CSS Class like .divi-sticky-section & go to Section settings > Advanced > CSS Class & add: divi-sticky-section
     
  7. Maecy

    Maecy Member

    It's working now! Such a rookie mistake, I'm sorry and thank you so much!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo