Witam, mam dziwny problem. Mianowicie, gdy chcę usunąć domyślne marginesy strony (margin: 0; padding: 0; w sekcji body) marginesy nie zostają usunięte, a jedynie znika mi tło (obrazkowe). Za zwyczaj staram samemu radzić sobie z problemami, ale tu nie mam pomysłu.
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
<meta name="description" content="Opis w Google" />
<meta name="keywords" content="słowa, kluczowe, wypisane, po, porzecinku" />
<link rel="stylesheet" href="main.css" type="text/css" />
</head>
<body>
<div class="container">
<header>
</header>
<nav>
</nav>
</div>
</body>
</html>
body
{
/* Background pattern from Subtle Patterns */
background-image: url("img/hexabump_@2X.png")
margin: 0 !important;
}
header
{
background-color: #00CC33;
width: 100%;
height: 125px;
}