Hi,
I have spent the whole morning looking on the web for something that will allow me to apply a fix to get the pages of my site to "center" in IE 7. IE6, Firefox 2.0 are good to go. I can't check Safari(if you have, please let me know any alignment issues).
So how do I do this?
Here is the css:
/* CSS Document */
body{
margin: 20px 0 0 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:80%;
background-color:#ffffff;
background-image: none;
color:#fff;
scrollbar-face-color: #525252;
scrollbar-highlight-color: #B0B0B0;
scrollbar-shadow-color: #111111;
scrollbar-3dlight-color: #777777;
scrollbar-arrow-color: #D56C00;
scrollbar-track-color: #333333;
scrollbar-darkshadow-color: #111111;
text-align:center;
}
#header{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 80px; /*Height of frame div - Anand: 80px */
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color:#ffffff;
background-image: none;
color:#fff;
}
#menu{
position: absolute;
top: 80px; /* Anand: 80px */
left: 0;
width: 100%;
height: 20px; /*Height of frame div*/
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color:#ffffff;
background-image: none;
color:#fff;
}
#wrapper{
position: fixed;
top: 130px; /*Set top value to HeightOfFrameDiv - Anand: 130px*/
left: 20px;
right: 0;
bottom: 20px;
overflow: auto;
width: 833px;
background: #3d3d3d;
background-image: none;
color:#fff;
text-align:left;
margin:0 auto;
border:2px solid #6f4d2b;
padding:20px;
}
#contactleft {
width:45%;
float:left;
}
#contactright {
width:45%;
float:right;
}
* html #contactleft {
width:45%;
float:left;
}
* html #contactright {
width:45%;
float:right;
}
.clear {
clear:both;
}
* html body{ /*IE6 hack*/
padding: 130px 0 20px 0; /*Set value to (HeightOfFrameDiv 0 0 0) Anand: First value was 130px*/
}
* html #wrapper{ /*IE6 hack*/
height: 100%;
width: 833px;
}
#menu {
width:100%;
height:50px;
color:#ffffff;
background-color:#ffffff;
background-image: none;
}
ul#navlist
{
margin-left: 0;
margin-top:10px;
padding-left: 0;
white-space: nowrap;
font-weight:bold;
}
#navlist li
{
display: inline;
list-style-type: none;
}
#navlist a { padding: 3px 10px; }
#navlist a:link, #navlist a:visited
{
color: #fff6c8;
background-color: #000;
background-image: none;
text-decoration: none;
}
#navlist a:hover
{
color: #000;
background-color: #fff6c8;
background-image: none;
text-decoration: none;
}
#headerimg {
margin:15px;
}
Please note that this happens on all pages except Home page. Home page shows up perfect in all browsers. That uses a different CSS.
Here is that one:
/* CSS Document */
body {
margin:20px 0 0 0;
border:0;
padding:0;
background:#ffffff;
font-family:Verdana, Arial, Helvetica, sans-serif;
letter-spacing:normal;
font-size:80%;
text-align:center;
scrollbar-face-color: #525252;
scrollbar-highlight-color: #B0B0B0;
scrollbar-shadow-color: #111111;
scrollbar-3dlight-color: #777777;
scrollbar-arrow-color: #D56C00;
scrollbar-track-color: #333333;
scrollbar-darkshadow-color: #111111;
}
#header {
width:100%;
color:#fff;
}
#menu {
width:100%;
height:50px;
color:#fff6c8;
}
#wrapper {
width:833px;
margin:0 auto;
padding:20px;
color:#FFFFFF;
border:2px solid #6f4d2b;
text-align:left;
}
img {
text-align:center;
}
Thank you
I have spent the whole morning looking on the web for something that will allow me to apply a fix to get the pages of my site to "center" in IE 7. IE6, Firefox 2.0 are good to go. I can't check Safari(if you have, please let me know any alignment issues).
So how do I do this?
Here is the css:
/* CSS Document */
body{
margin: 20px 0 0 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:80%;
background-color:#ffffff;
background-image: none;
color:#fff;
scrollbar-face-color: #525252;
scrollbar-highlight-color: #B0B0B0;
scrollbar-shadow-color: #111111;
scrollbar-3dlight-color: #777777;
scrollbar-arrow-color: #D56C00;
scrollbar-track-color: #333333;
scrollbar-darkshadow-color: #111111;
text-align:center;
}
#header{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 80px; /*Height of frame div - Anand: 80px */
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color:#ffffff;
background-image: none;
color:#fff;
}
#menu{
position: absolute;
top: 80px; /* Anand: 80px */
left: 0;
width: 100%;
height: 20px; /*Height of frame div*/
overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
background-color:#ffffff;
background-image: none;
color:#fff;
}
#wrapper{
position: fixed;
top: 130px; /*Set top value to HeightOfFrameDiv - Anand: 130px*/
left: 20px;
right: 0;
bottom: 20px;
overflow: auto;
width: 833px;
background: #3d3d3d;
background-image: none;
color:#fff;
text-align:left;
margin:0 auto;
border:2px solid #6f4d2b;
padding:20px;
}
#contactleft {
width:45%;
float:left;
}
#contactright {
width:45%;
float:right;
}
* html #contactleft {
width:45%;
float:left;
}
* html #contactright {
width:45%;
float:right;
}
.clear {
clear:both;
}
* html body{ /*IE6 hack*/
padding: 130px 0 20px 0; /*Set value to (HeightOfFrameDiv 0 0 0) Anand: First value was 130px*/
}
* html #wrapper{ /*IE6 hack*/
height: 100%;
width: 833px;
}
#menu {
width:100%;
height:50px;
color:#ffffff;
background-color:#ffffff;
background-image: none;
}
ul#navlist
{
margin-left: 0;
margin-top:10px;
padding-left: 0;
white-space: nowrap;
font-weight:bold;
}
#navlist li
{
display: inline;
list-style-type: none;
}
#navlist a { padding: 3px 10px; }
#navlist a:link, #navlist a:visited
{
color: #fff6c8;
background-color: #000;
background-image: none;
text-decoration: none;
}
#navlist a:hover
{
color: #000;
background-color: #fff6c8;
background-image: none;
text-decoration: none;
}
#headerimg {
margin:15px;
}
Please note that this happens on all pages except Home page. Home page shows up perfect in all browsers. That uses a different CSS.
Here is that one:
/* CSS Document */
body {
margin:20px 0 0 0;
border:0;
padding:0;
background:#ffffff;
font-family:Verdana, Arial, Helvetica, sans-serif;
letter-spacing:normal;
font-size:80%;
text-align:center;
scrollbar-face-color: #525252;
scrollbar-highlight-color: #B0B0B0;
scrollbar-shadow-color: #111111;
scrollbar-3dlight-color: #777777;
scrollbar-arrow-color: #D56C00;
scrollbar-track-color: #333333;
scrollbar-darkshadow-color: #111111;
}
#header {
width:100%;
color:#fff;
}
#menu {
width:100%;
height:50px;
color:#fff6c8;
}
#wrapper {
width:833px;
margin:0 auto;
padding:20px;
color:#FFFFFF;
border:2px solid #6f4d2b;
text-align:left;
}
img {
text-align:center;
}
Thank you
