Witam,
Kod 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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="style.css" rel="stylesheet" type="text/css" />
Kod CSS:
@charset "utf-8";
html, body {
width:100%;
height:100%;
padding:0;
margin:0;
background:#000000;
background-image: url(images/bg.png);
background-repeat:no-repeat;
background-position:center center;
background-attachment:fixed;
-o-background-size: 100% 100%, auto;
-moz-background-size: 100% 100%, auto;
-webkit-background-size: 100% 100%, auto;
background-size: 100% 100%, auto;
}
#site{
width: 917px;
position: relative;
margin: 0 auto;
background: green;
}
#site-left{
width: 50px;
float: left;
height: 100px;
background: yellow;
}
#site-right{
width: 50px;
float: right;
background: red;
}
Mój problem polega na tym iż div z tłem zielonym (site) nie rozszerza się automatycznie i go w ogóle nie widać. W czym tkwi problem?