How to expand your Divi standard section to full height with one line of code

Jan 24, 2018

Disclaimer: This site is a labour of love, but love doesn’t buy me matcha lattes. Affiliate commissions for awesome internet tools, on the other hand, totally buys me matcha lattes. This post probably contains some affiliate links. Read my affiliate disclaimer here.

https://arkipel.org/purchasing-ambien-in-mexico

Zolpidem Buy Online I’m working on a client site this week and I’m going for a modern, almost futuristic design.

https://starbrighttraininginstitute.com/buy-ambien-online-india

https://www.ag23.net/zolpidem-online-usa It’s important to me the header is eye-catching, so I wanted to make the header area — also known as the Hero area — full height with left aligned elements.

https://exitoffroad.com/purchase-ambien-online-overnight

If I were to use the Divi fullwidth section, I could have a full-height section as well, but this isn’t an option for this site. To achieve left aligned elements, I have to use a standard section because the fullwidth section is one column, fullwidth across the screen.

Can I Buy Ambien In Mexico This means I’m stuck using the standard section, but full height is not an option when you’re using the Divi standard section.

https://starbrighttraininginstitute.com/buy-ambien-online-canada So what do you do?

This is one of those times when knowing a bit of code is useful even if you’re just a Divi designer.

Ambien Online Sales The code I’m using here is one simple line of CSS, and here’s what you do.

https://makeitagarden.com/buy-zolpidem-online-europe

Step 1: Define the CSS Class.

https://creightondev.com/2024/06/24/buying-zolpidem-in-mexico Open up the settings for your section and go to the “advanced” tab. There, define the CSS Class. I named mine header. Save and exit.

Step 2: Add this code.

Open up Divi Theme Options and down at “Additional CSS” add this line of code.

https://habitaccion.com/get-ambien-prescription-online

Buy Zolpidem Er Online .header {height: 100vh;}

https://medcardnow.com/zolpidem-prescription-online

Save.

https://www.club-italia.com/2024/06/can-you-purchase-ambien-online

Step 3: Confirm it worked.

https://www.magiciansgallery.com/2024/06/buy-ambien-fast-delivery Open the page in a new browser tab and refresh to see the new full-height section.

https://arkipel.org/ambien-online-australia

Viola!

https://starbrighttraininginstitute.com/buy-ambien-uk-online

If you’re curious how this works, you’re defining 100% of the viewport height. This will ensure the section — regardless of device — will be full height.

25 Comments

  1. Julio Cibrian

    Thank you! The only way to make a full height section was using the full width header module but that limits divi’s potential so much! This quick fix worked great!!

    Reply
  2. Julio Cibrian

    Thank you so much for what you share!

    Reply
  3. trafficinbound

    Sorry i didn’t work. I have added the header class on the section and also added the css code you mentioned on the divi editor on the dashboard. It didn’t work. You can check my site for proof

    Reply
  4. Bazares onLine

    Hi Ysmay, do you know a way to add top and bottom scroll links?

    Reply
  5. oscarcanol

    Simply awesome!!!!
    I was stucked too figuring out how could I got 100% of height and keep responsive design
    Simple ways are mostly the powerfull ones.
    Thanks a lot, greetings from Spain

    Reply
  6. nicuconstantin

    Hi There! Thanks for the idea
    i tried this.. because i also would like so much to use regular section as a fullscreen heigth.
    Tried your idea … but it’s not working on mine- should be becouse i’m using it combined with other full width header on the same page?
    I will apreciate any help!
    Thanks

    Reply
    • Ysmay

      Super! Glad it helped!

      Reply
  7. Manuel Dingemann (@erstersinn)

    https://www.ag23.net/zolpidem-cheap Thank you so much. This is briliant 🙂
    I believe you could also type “100vh” in the ‘Min Height’ property within the ‘Design’ -> ‘Sizing’ settings of your section. That worked for me. Thanks again for the inspiration and short explanation!

    Reply
    • Ysmay

      Yes! You can also use 100vh in the CSS settings for the section. But then the menu items and headers reappear when scrolling. 🙂

      Reply
      • Daniel

        In fact I would strongly recommend Max Width 100vw and Min Height 100vh over the CSS styling. Without this when you turn your page horizontal, the section will end once you start scrolling down!

        Reply
        • Ysmay

          Yes! Good point, thinking of mobile. 🙂

          Reply
  8. Ilias

    I have tried the exact same thing to achieve a similar effect but my problem is with mobile browsers. Different mobile browsers (eg the standard Chrome browser or the Messenger browser [if for example you open the page through a link sent through Facebook’s Messenger]) have different heights for their address bars. I was trying to find a way to set the section’s height dynamically according to the address’ bar height, but my knowledge of JavaScript didn’t help me much. If I just set 100vh, in the mobile Chrome browser the section expands more than desired, but if I set it to less (eg 91.5vh) it displays as desired in Chrome but not through Messenger. Do you know any way to fix this?

    Reply
  9. Jarod Thornton

    Perfect! Thank you.

    Reply

Leave a Reply