Answer the question
In order to leave comments, you need to log in
How to make adaptive blocks occupy 100% vp?
Good evening, colleagues.
Please help me understand the concept and choose the right approach.
Given: One page consisting of two visual blocks - the main image and content.
Need: create a page so that on any device there would be a clear display in full screen (when loading) first of the main picture, and when scrolling down completely, the content section is displayed in full screen.
Question: How to implement this in bootstrap? Is it ok to set row sections to 100% height and body/container to 200% height? Are there any alternatives to this approach? And what's the best practice in creating one-page sites - sheets, in which sections are not bloated with content, but they just need to be manually stretched?
Thank you!
Answer the question
In order to leave comments, you need to log in
I implemented it as follows:
we put 2 blocks on the page
<div class="container-fluid">
</div>
<div class="container-fluid">
</div>
In bootstrap you create a block with a class container-fluid
inside it a block with a class row
and inside it a block with a class col-xs-12
and the last block will be full screen, at any size
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question