PHP expert |
|
Beste sima's,
Ik heb deze code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="shortcut icon" href="img/favicon.ico">
<link href="includes/css.css" rel="stylesheet" type="text/css">
<title>-</title>
</head>
<body>
<div class='header'></div>
<div class='menu_off'></div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <link rel="shortcut icon" href="img/favicon.ico"> <link href="includes/css.css" rel="stylesheet" type="text/css">
Met deze CSS:
div.header {
width: 900px;
height: 115px;
background-image: url("../img/header_bg.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
margin: 0px;
vertical-align: bottom;
}
div.menu_off {
width: 102px;
height: 56px;
background-image: url("../img/menu.png");
background-repeat: no-repeat;
background-attachment: fixed;
margin: 0px;
border: 1px solid #ffffff;
}
div.header { width: 900px; height: 115px; background-image: url("../img/header_bg.jpg"); background-repeat: no-repeat; background-attachment: fixed; margin: 0px; vertical-align: bottom; } div.menu_off { width: 102px; height: 56px; background-image: url("../img/menu.png"); background-repeat: no-repeat; background-attachment: fixed; margin: 0px; border: 1px solid #ffffff; }
Als ik deze bekijk in Firefox, zie ik alleen de achtergrond van de div 'header', en niet die van de div 'menu_off'.
Haal ik echter het regeltje:
[code=html4strict]<div class='header'></div>[/html]
weg, zie ik hem wel.
In beide gevallen zie ik wel de witte border om de 'menu_off' div.
Hoe krijg ik beide achtergronden tegelijk erop?
|