I have some problems making the columns 100% and forcing the footer at the bottom. Please refer to the code below and let me know a solution:
HTML CODE:[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/templatetest.dw t" codeOutsideHTML IsLocked="false " -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet " href="styleshee ts/styleinnertest. css" type="text/css"/>
</head>
<body>
<div id="maincontain er">
<div id="topcontaine r">
<div id="navcontaine r">
<div id="nav">
</div>
</div>
</div>
<div id="videocontai ner"></div>
<div class="containe r">
<div id="lefttcontai ner"></div>
<div id="contentbox" >
<div class="text"></div>
</div>
</div>
<div class="credits" id="footer">zx, c,c,zxc,zx,czx, c,zcz</div>
</div>
</body>
<html>[/html]
And this is the CSS CODE:
Expand|Select|Wrap|Line Numbers
- html, body{height:100%;}
- html,body {margin:0;padding:0; background-color:#000;}
- #maincontainer
- {
- background:url(../images/bg.gif);
- height:100%;
- width:975px;
- margin-left:auto;
- margin-right:auto;
- position:relative;
- z-index:4;
- }
- #topcontainer
- {
- background:url(../images/navbg.gif) no-repeat;
- position:relative;
- width:968px;
- height:116px;
- padding:0;
- left:3px;
- top:-8px;
- z-index:3;
- }
- #navcontainer{
- position: relative;
- width: 968px;
- height: 33px;
- padding: 0;
- margin: 0 0 10px 0;
- z-index:2;
- }
- #videocontainer
- {
- background:#ffffff;
- position:relative;
- width:968px;
- height:238px;
- padding:0;
- left:3px;
- top:-4px;
- z-index:0;
- }
- .container
- {
- height:100%; /* IE6: treaded as min-height*/
- min-height:100%; /* real browsers */
- background:url(../images/bg.gif);
- padding-bottom:25px;
- }
- #contentbox
- {
- background:#FFFFFF;
- position:relative;
- float:left;
- width:713px;
- height:100%;
- padding:0;
- left:2px;
- top:0px;
- }
- .text
- {
- position:relative;
- float:right;
- width:700px;
- height:auto;
- padding:0;
- top:270px;
- right:3px;
- font-family:Arial;
- color:#666666;
- font-size: 75%;
- font-weight:normal;
- }
- #lefttcontainer
- {
- background:url(../images/home_leftnavtop.gif) top no-repeat;
- background-color:#FFFFFF;
- position:relative;
- width:250px;
- height:100%;
- float:left;
- top:-3px;
- margin:3px;
- }
- #footer
- {
- background:#000000;
- position:absolute;
- bottom:0;
- width:100%;
- height:25px; /* Height of the footer */
- margin-left:auto;
- margin-right:auto;
- border-top: thin #333333 solid;
- border-bottom: thin #333333 solid;
- }