I’m trying to do exactly as this page does, If you resize the second page, you’ll notice that the container header (the one with the phone numbers, address and “book now” button) keeps fixed at the bottom of the window, but if you start scrolling down the page, you can continue with the rest of the content. How can I do that?
I’m using Twitter Bootstrap 3.
2
Answers
They use
calc(100vh - 75px)
to calculate the height of the top div.So the first div will always cover the entire viewport height (100vh) minus 75px.
The “book now” button is just an element with
position:fixed;
Something like this should do what you want:
https://jsfiddle.net/zaw0mptm/2/
you can check it
then use this css