Arun
Arun

Reputation: 1528

css 100vh is not setting the div to 100% height

As seen in the below screenshot

enter image description here

the viewport height is covered around 97% and not 100%. the next section can be seen. I am stuck with this issue for a couple of hours now, below is my css and html code

css

html, body {
     width: 100%;
    height: 100%;
}

.section-3 {
    background: url(../images/section-3-bg.jpg) center center;
    background-size: cover;
    position: relative;
    height:100vh;
}

HTML

<section class="section-3 col-xs-12" id="demand">
    <section class="container">
        <center>
            <div id="trapezium"></div>
                <h1 class="blue big-font">On Demand Charters</h1>
                <img src="images/demand-border.png" alt="" class="img-responsive" style="width:auto;">
                <div class="col-md-7 col-md-push-2">
                <p class="medium-font">With Powerfly, access a range of aircraft from light 
                                       to large jets, turboprops and helicopters 
                                       either through on-demand charters. All you need to
                                       do is book and a Powerfly executive will customise
                                       your plan as per your needs.
                </p>
                <h2 class="explore-btn"><a href="demand.html">Details</a></h2>
            </div>
        </center>
    </section>
</section>

Upvotes: 0

Views: 1636

Answers (2)

Germano Plebani
Germano Plebani

Reputation: 3625

The real problem is the carousel!

#carousel-generic-1 {
    margin-top: 0;
}

Upvotes: 1

Nutshell
Nutshell

Reputation: 8537

It works fine .. You didn't take a complete screenshot of the section but it actually take the place it should.

However, it cuts the button because of the height: 100vh;

enter image description here

Upvotes: 0

Related Questions