Background Size Per Section | WordPress.org

[ad_1]

Plugin Author
malihu

(@malihu)

Hello,

Normally, you’d want each section height to be equal to the viewport height. You can do this by using the CSS vh unit (info).

It would also be better to set a minimum height (instead of just height) so you can have longer content within sections (i.e. content that exceeds the viewport/screen height).

So, a CSS like the following would do the trick:

.your-sections-class{
    display: block;
    position: relative;
    min-height: 100vh;
}

Hope this helps

Thread Starter
ndar

(@ndar)

Got it. Thank you so much!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer