k40t1x
04-06-2009, 12:55 AM
hi everybody, I'm having problem with the auto height (cause my page contains borders) here is my code what am I doing wrong (if I set float to left it works)
#page is the main div (all other divs all included in it)
the height goes only til bg_980.jpg is reached and not further.
html, body {
height: 100%;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background: black;
}
#page {
width: 980px;
height: 100%;
margin: 0px auto 0px auto;
text-align: left;
border-width: 1px;
border-style: solid;
border-color: #444;
background: transparent url('../images/bg_980.jpg') no-repeat;
}
#lang {
width: 980px;
text-align: left;
height: 25px;
margin: 0px;
float: left;
background-color: #000000;
}
#header {
width: 980px;
text-align: left;
height: 200px;
margin: 4px 0px 2px 0px;
float: left;
}
#main {
height: auto;
width: 980px;
margin-right: 0px;
margin-left: 0px;
text-align: left;
float: left;
/* border-width: 1px;
border-style: solid;
border-color: blue;
*/
}
#menu {
width: 180px;
height: auto;
padding-top: 48px;
margin-right: 0px;
margin-left: 0px;
text-align: left;
float: left;
position: absolute;
/* border-width: 1px;
border-style: solid;
border-color: red;
*/
}
#content {
height: auto;
width: 780px;
padding-top: 15px;
margin-right: 42px;
margin-left: 220px;
text-align: left;
float: left;
position: relative;
/* border-width: 1px;
border-style: solid;
border-color: green;
*/
}
#footer {
width: 980px;
height: auto;
margin: 0px auto 0px auto;
text-align: center;
text-color: blue;
color: #B9B971;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: small;
font-size: 12px;
}
#page is the main div (all other divs all included in it)
the height goes only til bg_980.jpg is reached and not further.
html, body {
height: 100%;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background: black;
}
#page {
width: 980px;
height: 100%;
margin: 0px auto 0px auto;
text-align: left;
border-width: 1px;
border-style: solid;
border-color: #444;
background: transparent url('../images/bg_980.jpg') no-repeat;
}
#lang {
width: 980px;
text-align: left;
height: 25px;
margin: 0px;
float: left;
background-color: #000000;
}
#header {
width: 980px;
text-align: left;
height: 200px;
margin: 4px 0px 2px 0px;
float: left;
}
#main {
height: auto;
width: 980px;
margin-right: 0px;
margin-left: 0px;
text-align: left;
float: left;
/* border-width: 1px;
border-style: solid;
border-color: blue;
*/
}
#menu {
width: 180px;
height: auto;
padding-top: 48px;
margin-right: 0px;
margin-left: 0px;
text-align: left;
float: left;
position: absolute;
/* border-width: 1px;
border-style: solid;
border-color: red;
*/
}
#content {
height: auto;
width: 780px;
padding-top: 15px;
margin-right: 42px;
margin-left: 220px;
text-align: left;
float: left;
position: relative;
/* border-width: 1px;
border-style: solid;
border-color: green;
*/
}
#footer {
width: 980px;
height: auto;
margin: 0px auto 0px auto;
text-align: center;
text-color: blue;
color: #B9B971;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: small;
font-size: 12px;
}