Try…
body {
margin: 0;
padding: 0;
}
Because of browsers using different default stylesheets, some people recommend a reset stylesheet such as Eric Meyer’s Reset Reloaded.
More Related Contents:
- CSS margin terror; Margin adds space outside parent element [duplicate]
- Why does this CSS margin-top style not work?
- How wide is the default “ margin?
- Why is there an unexplainable gap between these inline-block div elements? [duplicate]
- How to remove margin space around body or clear default css styles
- Removing body margin in CSS
- CSS margin adds space outside parent element [duplicate]
- Why can’t I center with margin: 0 auto?
- Margin top in inline element
- How to align two elements on the same line without changing HTML
- Why would margin not be contained by parent element?
- Why doesn’t “margin: auto” center an element vertically?
- `margin:auto;` doesn’t work on inline-block elements
- CSS Cell Margin
- Is there any way to add padding to select options via CSS?
- Align a div to center
- How to force child div to be 100% of parent div’s height without specifying parent’s height?
- Unwanted margin in inline-block list items [duplicate]
- Background image not showing in Safari
- How to vertically align into the center of the content of a div with defined width/height?
- How to make an element’s background-color a little darker using CSS
- Allow specific tag to override overflow:hidden
- How to add border to a container with transparent gaps in between
- HTML float right element order
- Add text above HTML5 Video
- How to create a multi-column list?
- Bootstrap – Fill fluid container between header and footer
- Font Awesome & Unicode
- How to make one span both columns in a two column table?
- What does “semantically correct” mean?