+ 2

Stretch website width and height to android screen width and height

Is there any HTML/CSS/JS code for this?

20th Nov 2018, 12:02 PM
MrCoder
MrCoder - avatar
3 odpowiedzi
+ 5
* { padding: 0; margin: 0; } body { width: 100%; height: 100%; }
20th Nov 2018, 12:39 PM
Arne Van Kerckvoorde
Arne Van Kerckvoorde - avatar
+ 5
Padding and margin removes the default padding and margin from everyting so your webpage is truly 100% wide.
20th Nov 2018, 12:40 PM
Arne Van Kerckvoorde
Arne Van Kerckvoorde - avatar
0
Does this prevent the user from zooming in and out of the site?
20th Nov 2018, 2:04 PM
MrCoder
MrCoder - avatar