简体   繁体   中英

Slider height CSS does not work

For my website http://www.suemaisano.com/ , I want to increase the homepage slider BACKGROUND IMAGE height (different than slider image, I did not set any slider image, only background image). I set the class as of the slider as homeSlider, and this is the code I put in the child CSS

.homeSlider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: 1080px !important;}

However, the background image height did not change when I manipulated the min-height. The actual image sizes are ~1920x1080. Anything I need to change the code to make the min height work?

Thanks in advance!

假设图像进入显示文本的div中,则下面的内容应为您指定的高度。

.et_pb_slide_content {height: 1080px; }

You need to set height on description container

.homeSlider .et_pb_slide_description  {
    min-height: 1080px;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM