Edit Bootstrap owl carousel height?

Hello everyone,

I'm currently editing a website template written with Bootstrap. I want to adjust the hero section, which is powered by the owl carousel, so that it takes up the entire height of the screen, even on mobile devices. Does anyone know what I need to change to achieve this?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
regex9
1 year ago

The full height of the viewport corresponds to 100vh. You’d have to subtract the height of your navigation. Since it differs per screen width, a Media Query would be attached.

So once assumed the navigation would be up to a screen width of 785px about 80px high and then only 60px:

.slider-area {
  height: calc(100vh - 80px);
}

@media screen and (min-width: 786px) {
  .slider-area {
    height: calc(100vh - 60px);
  }
}

Only the child elements (.container and .row) take the full height of their parent element. You can give them the class predefined by Bootstrap h-100 to assign.