I know that their are many problems with IE and CSS. I can't figure out how to get this right. I am a php programmer and am new to the CSS world. Been using frames and tables, but am trying to get out of the habit.
I am having problems with this page
http://www.bobby-fisher.com/Temp in FifeFox it displays correctly but in IE it does not. The basic layout should be; Header, Footer (both widths based on content, always on the same part of the screen,) and content (between the header and footer scrolling whatever does not fit.) Also IE starts the three layers 50% to the right.
Below is the code for the page. Also if I am not using propper CSS please let me know, I am open to any suggestions.
Code:
<style type="text/css">
<!--
div {
position: absolute;
text-align: center;
}
div.Page {
width: 13px;
height: 13px;
z-index: 1;
background-repeat: no-repeat;
background-attachment: fixed;
}
#Page_Whole {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
background-color:#364A9F;
}
#Page_Top_Left {
background-position: left top;
left: 0px;
top: 0px;
background-image: url('Top-Left.gif');
}
#Page_Top_Right {
top: 0px;
right: 0px;
background-image: url('Top-Right.gif');
background-position: right top;
}
#Page_Bottom_Left {
left: 0px;
bottom: 0px;
background-image: url('Bottom-Left.gif');
background-position: left bottom;
}
#Page_Bottom_Right {
right: 0px;
bottom: 0px;
background-image: url('Bottom-Right.gif');
background-position: right bottom;
}
#Page_Content {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
}
#Header{
top:0px;
height:100px;
width:100%;
}
#Footer{
bottom:0px;
height:50px;
width:100%;
}
#Page{
bottom:50px;
top:100px;
width:100%;
overflow:auto;
}
-->
</style>
The HTML is:
Code:
<div class="Page" id="Page_Whole">
<div class="Page" id="Page_Top_Left">
</div>
<div class="Page" id="Page_Top_Right">
</div>
<div class="Page" id="Page_Bottom_Left">
</div>
<div class="Page" id="Page_Bottom_Right">
</div>
<div class="Page" id="Page_Content">
<div id="Header">
HEADER</div>
<div id="Footer">
FOOTER</div>
<div id="Page">
The CSS forum is a Cascading Style Sheet learning resource for web developers
and designers. Web developers give and receive tips and advice on CSS and
website creation. ........
</div>
</div>
</div>
Everything is temporary, some things are just more temporary than others... except for death, that seems to be pretty permanent