Hi guys,
Need help on trying to make the div height of my container 100%. The div has a bg image which should stretch to the height of the browser. But for some reason the container div and image only goes to a certain height. Not sure if the css code is correct but it is listed below. Any help would be greatly appreciated.
@charset “utf-8”;
/* CSS Document
* { margin:0; padding:0 }
html {
height: 100%;
}
body {
margin: 0;
height: 100%;
}
#container {
margin: 0;
height: 100%;
}
#header{
width: 850px;
margin-left: auto;
margin-right: auto;
height: 100%;
background-color: #FFFFFF;
}
#border{
float: left;
width: 800px;
height: 20px;
background-color: #FF9000;
margin-left: 25px;
margin-bottom: 35px;
margin-top: 25px;
}
#logo{
float: left;
background-repeat: no-repeat;
width: 140px;
height: 150px;
margin-top: 5px;
margin-left: 25px;
}
#main{
position:relative;
width: 550px;
height: 1080px;
top: 10px;
left: 0px;
}
#mock1{
float:left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
border:none;
margin-left: 25px;
}
#mock2{
float:left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
border:none;
margin-left: 100px;
}
#mock3{
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
border: no;
margin-left: 90px;
}
#header_text{
float: left;
background-image: url(images/header_1.png);
background-repeat:no-repeat;
width: 500px;
height: 70px;
top: 0px;
left: 0px;
margin-left: 85px;
margin-bottom: 0px;
margin-top: 120px;
}
#web_text{
float: left;
background-image:url(images/web_text.gif);
background-repeat:no-repeat;
width: 175px;
height: 50px;
margin-bottom: 40px;
margin-left: 20px;
}
#web_text1{
float: left;
background-image:url(images/web_text1.gif);
background-repeat:no-repeat;
width: 175px;
height: 50px;
margin-bottom: 40px;
margin-left: 20px;
margin-top: 40px;
}
#websites{
float:left;
height: 200px;
width: 820px;
}
#logos{
float:left;
height: 200px;
width: 820px;
}
#misc{
float: left;
height: 200px;
width: 820px;
}
#resume{
float: right;
background-repeat: no-repeat;
width: 35px;
height: 35px;
margin-top: 10px;
margin-right: 25px;
}
#creative {
position:relative;
width: 491px;
height: 92px;
background-image: url(images/creativity.gif);
background-repeat:no-repeat;
left: 350px;
top: -150px;
}
#logo1{
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
margin-left: 25px;
}
#logo2{
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
margin-left: 100px;
}
#logo3 {
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
margin-left: 100px;
}
#web_text2{
float: left;
background-image: url(images/web_text2.gif);
background-repeat:no-repeat;
width: 175px;
height: 50px;
margin-bottom: 40px;
margin-left: 20px;
margin-top: 40px;
}
#billboard{
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
margin-left: 25px;
}
#billboard1{
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
margin-left: 100px;
}
#billboard2{
float: left;
background-repeat:no-repeat;
width: 195px;
height: 180px;
margin-left: 100px;
}
#button{
position:relative;
width: 150px;
height: 50px;
left: 750px;
top: 80px;
}
#mini_mock{
float: left;
width: 700px;
height: 450px;
margin-left: 70px;
}
#mini_mock1{
position:relative;
margin-left: auto;
margin-right: auto;
width: 510px;
height: 600px;
border:none;
border-style:solid;
border-width:thin;
border-color: #FF9900;
left: 0px;
top: 10px;
}
#mini_mock2{
position:relative;
margin-left: auto;
margin-right: auto;
width: 510px;
height: 600px;
border:none;
border-style:solid;
border-width:thin;
border-color: #FF9900;
left: 0px;
top: 20px;
}
#mini_mock3{
position:relative;
margin-left: auto;
margin-right: auto;
width: 510px;
height: 320px;
border-style:solid;
border-width:thin;
border-color: #FF9900;
left: 0px;
top: 10px;
}
#mini_mock4{
position:relative;
margin-left: auto;
margin-right: auto;
width: 510px;
height: 700px;
border-style:solid;
border-width:thin;
border-color: #FF9900;
left: 0px;
top: 40px;
}
#windows_icon{
float: left;
width: 37px;
height: 35px;
}
#border1 {
float: left;
width: 800px;
height: 20px;
background-color: #FF9000;
margin-left: 20px;
margin-bottom: 50px;
margin-top: 25px;
}