Last Updated: February 25, 2016
·
716
· alexlafroscia

White Space Around Body

One of the biggest frustrations for me when I first started out was the fast that I could not get rid of the "blank space" that surrounded the body of my website. It never dawned on me until much later that there might be margin space or padding that is added by default. So, if you're just starting out and are really new to HTML and CSS, always make sure to add this to your style section:

body {
    margin: 0;
    padding; 0;
}

Now that I've been at is a while, it seems really silly, but no one ever said it to me so I didn't know!