Query | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 .,..

7th Aug 2021, 2:01 AM
Saquib Naiyer
Saquib Naiyer - avatar
2 Answers
+ 1
Share your code
7th Aug 2021, 3:15 AM
Pariket Thakur
Pariket Thakur - avatar
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
7th Aug 2021, 4:22 AM
Luis E. Gómez Mena
Luis E. Gómez Mena - avatar