C
Cerebral Believer
Hi,
I have created a stylesheet in Microsoft Frontpage for a website I am
creating. Basically I am using a number of nested <div> tags to control the
layout of my page. What I have created displays fine in Internet Explorer,
but not anything like how it should in Netscape or Firefox (both appear to
render the page similarly incorrectly).
Basically if you imagine each number represents a <div>, my page should
render like this
1 2 3
4 5 6
7
8
9
Which it does in Internet Explorer, but in Netscape/Firefox it appears:
1
2
3
4
5
6
7
8
9
Just for informations sake, I have one global <div>, which holds 3 sectional
<div>'s (TOP, MIDDLE & BOTTOM). Each of the sectional <div>'s holds a
further three <div>'s (left, center and right [1+2+3 & 4+5+6]), and in the
case of the BOTTOM sectional <div> (doclinks, textnav, & footer [7+8+9]).
Can anyone point out areas where I could improve my code, or where I have
done something stupid? Most importantly, does anyone know what CSS coding I
need to specify so that I can get my page to at least render similarly in
both browsers? Here is my CSS:
-------
html {
min-height: 100%;
width: 100%;
height: 100%
}
body {
min-height: 100%;
width: 100%;
height: 100%
}
#GLOBAL {
min-height: 100%;
width: 100%;
height: 100%
position: static;
display: inline;
}
#TOP {
width: 100%;
height: 200px;
position: static;
top: 0px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#topleft {
width: 17%;
height: 200px;
position: static;
top: 0px;
left: 0px;
right: 83%;
bottom: auto;
display: inline;
}
#topcenter {
width: 66%;
height: 200px;
position: static;
top: 0px;
left: 17%;
right: 17%;
bottom: auto;
display: inline;
}
/**
#infostrip {
}
**/
#topright {
width: 17%;
height: 200px;
position: static;
top: 0px;
left: 83%;
right: 0px;
bottom: auto;
display: inline;
}
#MIDDLE {
width: 100%;
height: 400px;
position: static;
top: 200px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#middleleft {
width: 17%;
height: 400px;
position: static;
top: auto;
left: 0px;
right: 83%;
bottom: auto;
display: inline;
}
/**
#infostrip {
}
**/
#middlecenter {
width: 66%;
height: 400px;
position: static;
top: auto;
left: 17%;
right: 17%;
bottom: auto;
display: inline;
}
#middleright {
width: 17%;
height: 400px;
position: static;
top: auto;
left: 83%;
right: 0px;
bottom: auto;
display: inline;
}
#BOTTOM {
width: 100%;
height: auto;
position: static;
top: auto;
left: 0px;
right: 0px;
bottom: 0px;
display: inline;
}
#doclinks {
width: 100%;
height: 100px;
position: static;
top: 600px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#textnav {
width: 100%;
height: 100px;
position: static;
top: 700px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#footer {
width: 100%;
height: 100px;
position: static;
top: 800px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
I have created a stylesheet in Microsoft Frontpage for a website I am
creating. Basically I am using a number of nested <div> tags to control the
layout of my page. What I have created displays fine in Internet Explorer,
but not anything like how it should in Netscape or Firefox (both appear to
render the page similarly incorrectly).
Basically if you imagine each number represents a <div>, my page should
render like this
1 2 3
4 5 6
7
8
9
Which it does in Internet Explorer, but in Netscape/Firefox it appears:
1
2
3
4
5
6
7
8
9
Just for informations sake, I have one global <div>, which holds 3 sectional
<div>'s (TOP, MIDDLE & BOTTOM). Each of the sectional <div>'s holds a
further three <div>'s (left, center and right [1+2+3 & 4+5+6]), and in the
case of the BOTTOM sectional <div> (doclinks, textnav, & footer [7+8+9]).
Can anyone point out areas where I could improve my code, or where I have
done something stupid? Most importantly, does anyone know what CSS coding I
need to specify so that I can get my page to at least render similarly in
both browsers? Here is my CSS:
-------
html {
min-height: 100%;
width: 100%;
height: 100%
}
body {
min-height: 100%;
width: 100%;
height: 100%
}
#GLOBAL {
min-height: 100%;
width: 100%;
height: 100%
position: static;
display: inline;
}
#TOP {
width: 100%;
height: 200px;
position: static;
top: 0px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#topleft {
width: 17%;
height: 200px;
position: static;
top: 0px;
left: 0px;
right: 83%;
bottom: auto;
display: inline;
}
#topcenter {
width: 66%;
height: 200px;
position: static;
top: 0px;
left: 17%;
right: 17%;
bottom: auto;
display: inline;
}
/**
#infostrip {
}
**/
#topright {
width: 17%;
height: 200px;
position: static;
top: 0px;
left: 83%;
right: 0px;
bottom: auto;
display: inline;
}
#MIDDLE {
width: 100%;
height: 400px;
position: static;
top: 200px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#middleleft {
width: 17%;
height: 400px;
position: static;
top: auto;
left: 0px;
right: 83%;
bottom: auto;
display: inline;
}
/**
#infostrip {
}
**/
#middlecenter {
width: 66%;
height: 400px;
position: static;
top: auto;
left: 17%;
right: 17%;
bottom: auto;
display: inline;
}
#middleright {
width: 17%;
height: 400px;
position: static;
top: auto;
left: 83%;
right: 0px;
bottom: auto;
display: inline;
}
#BOTTOM {
width: 100%;
height: auto;
position: static;
top: auto;
left: 0px;
right: 0px;
bottom: 0px;
display: inline;
}
#doclinks {
width: 100%;
height: 100px;
position: static;
top: 600px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#textnav {
width: 100%;
height: 100px;
position: static;
top: 700px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}
#footer {
width: 100%;
height: 100px;
position: static;
top: 800px;
left: 0px;
right: 0px;
bottom: auto;
display: inline;
}