Width & Height 100% ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Width & Height 100% ?

As the title says, can you actually set 100% in both to make it always 100% of the user screen? Or can you only pick one of them ?

11th Mar 2017, 4:25 PM
Simen Daehlin
Simen Daehlin - avatar
3 Answers
+ 16
You can do both
11th Mar 2017, 7:17 PM
Jafca
Jafca - avatar
+ 2
And I also figured it's decraped as you can use background-size:cover; thanks though Jafca
11th Mar 2017, 7:19 PM
Simen Daehlin
Simen Daehlin - avatar
0
You can set both width and height as percentage
12th Sep 2019, 9:46 AM
Aras Abdulrahman
Aras Abdulrahman - avatar