. am vazut intrun tutorial cum se afisa headerul , avea ceva de genu:
#header {
float:left;
background-image: url(images/header1.gif);
width:960px;
height:136px;
background-repeat:no-repeat;
}
bun, am incercat si eu acelasi lucru, dar , mie nu imi afiseaza imaginea ( o afiseaza numai daca declar top: ; left: ; )
de ce ?
va arat tot codul poate am gresit eu undeva:
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vila Andreea</title>
<link href="style.css" rel="stylesheet" type="text/css /></head>
<body>
<div id="wrapper">
<div id="header"></div>
</div>
</body>
</html>
si style.css
@charset "utf-8";
/* CSS Document */
body {
background-color:#000000;
margin-left:0px;
margin-top:0px;
margin-right:0px;
margin-bottom:0px;
}
#wrapper {
width:960px;
margin: 0 auto;
#header {
float:left;
background-image: url(images/header1.gif);
width:960px;
height:136px;
background-repeat:no-repeat;
}
mersi!