The following little page shows 5 DIVs in the same page, everyone with it background-image, but nothing is shown!!! Why? (the images are in the correct path)
<!DOCTYPE html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="../css/divs.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="container">
<div class="erba"></div>
<div class="cordolo"></div>
<div id="asfalto">
</div>
<div class="cordolo"></div>
<div class="erba"></div>
</div>
</body>
</html>
/* divs.css */
html, body, #container, .erba, .cordolo, #asfalto {
top: 0px;
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0px;
padding: 0px;
}
html, body, #container {
width: 100%;
font-family: "Trebuchet MS", Verdana, sans-serif;
font-size: small;
}
.erba {
float: left;
background-image: url(../images/site/erba.jpg);
background-repeat: repeat;
width: 2%;
}
.cordolo {
float: left;
background-image: url(../images/site/cordolo.jpg);
background-repeat: repeat-y;
width: 1%;
}
#asfalto {
float: left;
background-image: url(../images/site/asfalto.jpg);
background-repeat: repeat;
text-align: center;
vertical-align: top;
width: 94%;
}