According to w3, the margin of an element is transparent:
I've built a very basic HTML page:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<style>
body {
background-color: red;
}
</style>
</head>
<body></body>
</html>
In Chrome, the inspector reports that "body" has an 8px margin:
But on the page, the margin is full of the background color! (Notice that there's no space between my bookmarks bar and the red background - I promise I haven't scrolled.
What's up with that?