+ 1

How do I set the width and height of a section to be 100% in size of the computer's screen, using css

23rd Jun 2019, 8:07 AM
Fàvour Iykè Efam
Fàvour Iykè Efam - avatar
3 odpowiedzi
+ 10
100vw, 100vh. % is used to match the size of the parent while view-width and view-height matches the viewport.
23rd Jun 2019, 8:10 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
You can use .section{ position:absolute; width:100%; height:100%; }
23rd Jun 2019, 9:06 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
section { width: 100%; height: 100%; }
23rd Jun 2019, 8:09 AM
Airree
Airree - avatar