Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsGeneral
How to Create a Divi Hero Section With Full Height
How to Create a Divi Hero Section With Full Height

Learn how to adjust the section settings, use custom CSS, and create a responsive Divi Hero Section with full height.

Updated over a week ago

Setting a section to full height can create a visually impactful design by utilizing the entire viewport height. This makes your content stand out and effectively engages visitors.

In this article, we will guide you through the process of setting a hero section with full height in Divi.

Set the Section's Height to full height using the Sizing options

  1. Open the Section's settings by clicking on the Gear icon

  2. Go to the Design Tab

  3. Expand the Sizing Option Group

  4. Set the 100vh value for the Min Height option

    Section - Design Tab - Sizing - Min Height

Set the Section's Height to full height using custom CSS (advanced)

  1. Identify the height of the Header area

  2. Open the Section's settings by clicking on the Gear icon

  3. Go to Advanced Tab โ†’ Custom CSS โ†’ Free Form CSS

  4. Add the following CSS code:

    body.logged-in selector {
    min-height: calc(100vh - 112px);
    }
    selector {
    min-height: calc(100vh - 80px)
    }

Note: In the above CSS code, from the 100vh value two different values are subtracted:

  • 112px - which is the sum of the WordPress top admin bar (32px) and the default height of the Header area, which is 80px. You will need to find out which is the height of your header area, which can vary depending on which layout for the Header you are using

  • 80px - is the default Height for the Divi's Header area. This can be different if you are using the Theme Builder and a custom Header layout

Did this answer your question?