I have an image, and I want the width to fill up the browser window, no matter the size of the window.
How do I do this in HTML and CSS?
The margin of the body element is set to a default of 8px, which is the space you are seeing which prevent the image to stretch the full width and height of the screen.
You can include
body {margin: 0px;}
to prevent this behavior, which I guess was put in place to prevent unstyled pages to present the content pushing to the edge of the page. It was discussed here.