0
Query
Section height 100vh child element is div of 40px*40px can we insert this same div element with a query to entire page according to vh I tried for loop for(let i=0; i<1000; i++) But as the screen size changes .,..
2 Answers
+ 1
Share your code
0
Add the overflow style on the section so that the content is scrolled or hidden as you choose and the section maintains its size.
overflow-y: scroll; //change as you want
overflow-x: hidden; //change as you want
Also add in the section the minimum height and max height to be more specific