LouisCyphre
Programmer
Hi All,
I've got a site that displays perfectly in Firefox, but the 'content' DIV is causing problems in IE.
- When it adds a scrollbar because the content won't all fit on the screen, the scrollbar isn't against the right hand edge of the browser. It is positioned about one scrollbar's width in from the edge, with blank space to the right.
- IE isn't calculating the height of the 'content' DIV correctly either. Although the 'content' DIV is correctly positioned below the 'head' DIV, IE seems to be calculating the height from the top of the browser window, which means the bottom of scrollbar and some of the page's content is beyond the bottom edge of the browser window.
All help greatfully received.
DOCTYPE of content pages is
Page layout CSS:
Hope someone can help.
Greg.
--
Since light travels faster than sound, is that why some people appear bright until you hear them speak?
I've got a site that displays perfectly in Firefox, but the 'content' DIV is causing problems in IE.
- When it adds a scrollbar because the content won't all fit on the screen, the scrollbar isn't against the right hand edge of the browser. It is positioned about one scrollbar's width in from the edge, with blank space to the right.
- IE isn't calculating the height of the 'content' DIV correctly either. Although the 'content' DIV is correctly positioned below the 'head' DIV, IE seems to be calculating the height from the top of the browser window, which means the bottom of scrollbar and some of the page's content is beyond the bottom edge of the browser window.
All help greatfully received.
DOCTYPE of content pages is
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
Page layout CSS:
Code:
html {height: 100%; max-height: 100%;
padding: 0; margin: 0; border: 0;
background: #fff;
font-family: Verdana, Arial, Helvetica, sans-serif;
/* Hide overflow: hidden from IE5/Mac */
/* \*/
overflow: hidden;
/* */}
body {height: 100%; max-height: 100%;
padding: 0; margin: 0; border: 0;
overflow: hidden;}
/* Define the page's 'header' section. */
#head {position: absolute; z-index: 5; height: 80px; width: 100%;
top: 0; left: 0;
margin: 0;
display: block;
background: url(images/background/headback.jpg) #FFFFFF;
background-position: 0 0; background-repeat: no-repeat;
font-size: 3.5em;
color: #003C56;
overflow: hidden;}
/* Define the page's 'content' section. */
#content {position: absolute; z-index: 3;
top: 80px; left: 200px; bottom: 25px; right: 0;
background: url(images/background/contback.jpg) #FFFFFF;
background-position: 0 0; background-repeat: no-repeat;
overflow: auto;}
* html #content {position: absolute; z-index: 3;
height: 100%; max-height: 100%;
top: 0; left: 0; right: 0; bottom: 0;
border-top: 80px solid #FFFFFF;
border-left: 200px solid #FFFFFF;
border-bottom: 25px solid #FFFFFF;
background-attachment: fixed;
overflow:auto;}
/* Define the page's 'left' navigation section. */
#left {position: absolute; z-index: 4; width:200px;
top: 80px; left: 0; bottom: 25px;
background: url(images/background/leftback.jpg) #FFFFFF;
background-repeat: no-repeat;
font-size: 1.2em;
overflow: auto;}
* html #left {height: 100%;
top: 0; bottom: 0;
border-top: 80px solid #FFFFFF; border-bottom: 25px solid #FFFFFF;
color: #FFFFFF;}
/* Define the page's 'footer' section. */
#foot {position: absolute; z-index: 5; width: 100%; height: 25px;
left:0; bottom:0;
margin: 0;
display: block;
background: url(images/background/footback.jpg) #FFFFFF;
background-position: 0 0; background-repeat: repeat-x;
font-size: 1em;
color: #003C56;
overflow: hidden;}
Hope someone can help.
Greg.
--
Since light travels faster than sound, is that why some people appear bright until you hear them speak?