N
N
Nikita Trigub2016-08-10 13:22:53
css
Nikita Trigub, 2016-08-10 13:22:53

How to stretch a block by 100%?

Good day
There is such a design

<div class="container-fluid">
        <div class="row">
              <div class="col-md-12 header">
                     <div class="sliderStyle">
                             <div class="slickSlider">
                                     <div><img src=""></div>
                                     <div><img src=""></div>
                             </div>
                     </div>
              </div>
        </div>
    </div>

I use the slick slider
plugin kenwheeler.github.io/slick
And I need the header and all content to be 100% in height at any resolution
How to implement it
So that when the browser window is reduced vertically, the image slider itself is always 100%

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2016-08-10
@Nikita_Trigub

min-height: 100vh;

K
Konstantin Velichko, 2016-08-10
@Zoxon

Set all parent blocks (including html and body) as well as this block to height: 100%
codepen.io/Zoxon/pen/grkPWp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question