webpage size | Sololearn: Learn to code for FREE!

+1

webpage size

please what is the standard size of a webpage? if view by any user using both mobile and pc should be able to display according to the screen resolution and how do i code it in html? https://code.sololearn.com/WJremmK1J19Z/?ref=app

5/21/2018 12:48:16 AM

Obayangbon Courage Tunde

4 Answers

New Answer

+9

Obayangbon Courage Tunde Try: #element { width: 100vw; height: 100vh } 100vw is basically 100 viewport width. So that will suit any device for the width. For the height it's 100vh, which is 100 viewport height.

+5

it varies from device to device and you can fix by writing suitable code

+1

1320px and you code it in the body section.

0

thanks.. will that suit the screen of any device?