Flames
06-10-2012, 08:24 PM
I was following this tutorial here: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
My CSS:
html, body {
height: 100%;
margin: 0;
}
#header {
width: 556px;
height: 50px;
background-image: url(logonog.png);
margin: 0 auto;
}
#wrapper {
width: 100%;
text-align: center;
min-height: 100%;
margin: 0 auto -4em;
}
#footer {
height: 4em;
background-color: #009933;
}
#push {
height: 4em;
background-color: #000099;
}
#body {
width: 556px;
background-repeat: no-repeat;
background-position: center center;
margin: auto;
}
My page code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<body>
</div>
<div id="wrapper">
<div id="leftwand"></div>
<div id="wandright"></div>
<div id="rightwand"></div>
<div id="header"></div>
<div id="body">
<p align="center"> </p>
<p align="center"><img src="intro.png" width="470" height="82" /></p>
<form method="post" action="" name="form1" id="form1">
<div align="center">
<p>
<input type="submit" value='' class="button" onMouseOver="this.style.cursor='pointer';" onClick="this.form.target='_blank'" name="getSite"/>
</p>
</div>
</form>
</div>
<div id="push"></div>
</div>
<div id="footer">footer goes here</div>
</body>
</html>
Before the code shown above I have some PHP and before the PHP I have this:
<head>
<link href="layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(bg.jpg);
}
.style4 {font-family: "Book Antiqua"}
-->
</style>
</head>
I know IE is very picky so I'm guessing it's something in my page code.
Thanks in advance!
My CSS:
html, body {
height: 100%;
margin: 0;
}
#header {
width: 556px;
height: 50px;
background-image: url(logonog.png);
margin: 0 auto;
}
#wrapper {
width: 100%;
text-align: center;
min-height: 100%;
margin: 0 auto -4em;
}
#footer {
height: 4em;
background-color: #009933;
}
#push {
height: 4em;
background-color: #000099;
}
#body {
width: 556px;
background-repeat: no-repeat;
background-position: center center;
margin: auto;
}
My page code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<body>
</div>
<div id="wrapper">
<div id="leftwand"></div>
<div id="wandright"></div>
<div id="rightwand"></div>
<div id="header"></div>
<div id="body">
<p align="center"> </p>
<p align="center"><img src="intro.png" width="470" height="82" /></p>
<form method="post" action="" name="form1" id="form1">
<div align="center">
<p>
<input type="submit" value='' class="button" onMouseOver="this.style.cursor='pointer';" onClick="this.form.target='_blank'" name="getSite"/>
</p>
</div>
</form>
</div>
<div id="push"></div>
</div>
<div id="footer">footer goes here</div>
</body>
</html>
Before the code shown above I have some PHP and before the PHP I have this:
<head>
<link href="layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(bg.jpg);
}
.style4 {font-family: "Book Antiqua"}
-->
</style>
</head>
I know IE is very picky so I'm guessing it's something in my page code.
Thanks in advance!