how to set page width same as screen width

how to set page width same as screen width

  

Hi

I need some help in order to adjust page width same as that of screen width. All machine have different resolution ratio, so my page should have full width as that of machine resolution.


Regards

Hi,

You can do that with the following CSS:

body {
    width: 100vw;
}

This tells the browser that the HTML body should be 100% the width of the viewport. You also have to make sure that the content inside the body is set to take 100% of its width, so that all the available space is used.