How do you ensure that the width of my homepage exactly matches the width of notebook or PC screens?

cr
3

D. H. That the one who will look at my homepage somewhere in the world on his notebook or PC only has to scroll down vertically but does not also have to scroll horizontally to the right to capture the entire content.

Is there any information in the HTML source code that determines this?

in

Width = 100%

Can it be the div / layer or the table or whatever you have set up your website…

oa

It depends on what size and width information you make on your website. If you specify a container with a fixed width: 500px, then every user has to scroll if the display is smaller than 500px. If you set the width as width: 50%, nobody has to scroll, because half of the page is always filled by the container. Incidentally, this information for the display is usually not in the HTML code, but in the CSS code, which is a so-called style sheet language that describes the display of the HTML code.

Ma

Something like this:

html, body {

width: 100%;

margin: 0;