Paithar
10-03-2006, 03:18 PM
Ok. I know that IE6 doesn't recognize min-width and supposedly treats width as a min-width, expanding as it needs. My problem is that I want a min-width for my menu bar. In Firefox, of course, this min-width works just fine but I can't get a workable hack in IE to work. Here's what I have...
My css file...
/* Stylesheet for Oasis Gaming USA website */
html, body {
margin: 0;
padding: 0;
width: 100%;
min-height: 100%;
font-size : 100%; /*Enable font resizing in IE*/
background-color: #ffffff;
color : #000000;
text-align : justify;
font-family : Verdana, Arial, sans-serif;
height: 100%;
}
html>body {
font-size: 9pt; /*Resets font size for non-IE browsers*/
}
h1 {
font-size: 1.3em;
}
h2 {
font-size: 1.2em;
}
h3 {
font-size: 1.1em;
font-weight: normal;
text-align: center;
display: block;
}
p {
margin : 5px 10px 10px 10px;
padding : 5px;
clear : both;
display : block;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
float: right;
}
#menu li {
float: left;
position: relative;
}
#menu li ul {
display: none;
position: absolute;
}
#menu li>ul { /* resets top and left for non IE browsers */
top: auto;
left: auto;
}
#menu li:hover ul, li.over ul {
display: block;
background-color: #15483a;
}
#menu a, #menu a:active, #menu a:visited {
width: 9em;
padding : 0;
color: #d2bc2d;
text-decoration : none;
font-weight: bold;
font-size: 1em;
display: block;
text-align: center;
}
#menu a:hover {
text-decoration : none;
background-color: #d2bc2d;
color: #15483a;
}
#page {
margin: 0 auto;
padding: 0;
width: 90%;
min-height: 100%;
background-color: #ffffff;
position: relative;
}
#header {
margin: 0 auto;
padding: 0;
width: 100%;
height: 168px;
}
#logo {
margin: 0;
padding: 0;
width: 159px;
height: 102px;
float: left;
margin-top: 5px;
margin-left: 40px;
display: inline;
background: #ffffff url(../images/Oasis-Logo2.gif) center no-repeat;
position: relative;
z-index: 100;
}
#menu {
margin: 90px 0 0 0;
padding: 5px;
height: 15px;
background-color: #15483a;
position: absolute;
z-index: 1;
width: 100%;
min-width: 850px;
left: 0;
}
* html #menu {
width: 850px;
}
#content {
margin: 0;
padding: 0;
width: 70%;
min-height: 100%;
float: left;
/* border: 1px solid red; */
}
.articleTitle {
font-size: 1.3em;
font-weight: bold;
text-align: left;
padding: 5px;
}
.article {
margin: 0;
padding: 5px;
font-size: 1em;
text-align: justify;
clear: left;
}
img#cabinet {
margin: 0;
padding: 0;
float: left;
position: relative;
}
#right {
margin: 0;
padding: 0;
width: 25%;
min-height: 100%;
float: right;
border: 1px solid blue;
}
#footer {
width: 100%;
height: 26px;
margin: 10px 0 0 0;
padding: 0;
clear: both;
font-size: .8em;
background-color: #15483a;
color: #d2bc2d;
position: absolute;
bottom: 0;
left: 0;
}
.copyright {
margin: 0 0 0 5px;
padding: 0;
position: relative;
top: 5px;
}
ul#footnav {
margin: -5px 0 0 0;
padding: 0;
list-style: disc;
float: right;
}
ul#footnav li {
float: left;
position: relative;
width: 8em;
}
ul#footnav a, ul#footnav a:active, ul#footnav a:visited {
width: 8.5em;
padding : 0 0 0 .5em;
color: #d2bc2d;
}
ul#footnav a:hover {
text-decoration : none;
}
As you can see I've tried the IE hack of * html #menu { width: 850px; } but IE still isn't recognizing that. Of course I have IE7 beta 2 installed rather than IE6 so there may be problem there, I don't know.
By the way, the link to the website where I'm testing this out is...http://www.oasisgamingusa.com/testlayout/index.php
Also, does anyone know why in IE my footer doesn't appear at the bottom of the screen but in FF it does? I want it to look like it does in FF.
Thanks
My css file...
/* Stylesheet for Oasis Gaming USA website */
html, body {
margin: 0;
padding: 0;
width: 100%;
min-height: 100%;
font-size : 100%; /*Enable font resizing in IE*/
background-color: #ffffff;
color : #000000;
text-align : justify;
font-family : Verdana, Arial, sans-serif;
height: 100%;
}
html>body {
font-size: 9pt; /*Resets font size for non-IE browsers*/
}
h1 {
font-size: 1.3em;
}
h2 {
font-size: 1.2em;
}
h3 {
font-size: 1.1em;
font-weight: normal;
text-align: center;
display: block;
}
p {
margin : 5px 10px 10px 10px;
padding : 5px;
clear : both;
display : block;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
float: right;
}
#menu li {
float: left;
position: relative;
}
#menu li ul {
display: none;
position: absolute;
}
#menu li>ul { /* resets top and left for non IE browsers */
top: auto;
left: auto;
}
#menu li:hover ul, li.over ul {
display: block;
background-color: #15483a;
}
#menu a, #menu a:active, #menu a:visited {
width: 9em;
padding : 0;
color: #d2bc2d;
text-decoration : none;
font-weight: bold;
font-size: 1em;
display: block;
text-align: center;
}
#menu a:hover {
text-decoration : none;
background-color: #d2bc2d;
color: #15483a;
}
#page {
margin: 0 auto;
padding: 0;
width: 90%;
min-height: 100%;
background-color: #ffffff;
position: relative;
}
#header {
margin: 0 auto;
padding: 0;
width: 100%;
height: 168px;
}
#logo {
margin: 0;
padding: 0;
width: 159px;
height: 102px;
float: left;
margin-top: 5px;
margin-left: 40px;
display: inline;
background: #ffffff url(../images/Oasis-Logo2.gif) center no-repeat;
position: relative;
z-index: 100;
}
#menu {
margin: 90px 0 0 0;
padding: 5px;
height: 15px;
background-color: #15483a;
position: absolute;
z-index: 1;
width: 100%;
min-width: 850px;
left: 0;
}
* html #menu {
width: 850px;
}
#content {
margin: 0;
padding: 0;
width: 70%;
min-height: 100%;
float: left;
/* border: 1px solid red; */
}
.articleTitle {
font-size: 1.3em;
font-weight: bold;
text-align: left;
padding: 5px;
}
.article {
margin: 0;
padding: 5px;
font-size: 1em;
text-align: justify;
clear: left;
}
img#cabinet {
margin: 0;
padding: 0;
float: left;
position: relative;
}
#right {
margin: 0;
padding: 0;
width: 25%;
min-height: 100%;
float: right;
border: 1px solid blue;
}
#footer {
width: 100%;
height: 26px;
margin: 10px 0 0 0;
padding: 0;
clear: both;
font-size: .8em;
background-color: #15483a;
color: #d2bc2d;
position: absolute;
bottom: 0;
left: 0;
}
.copyright {
margin: 0 0 0 5px;
padding: 0;
position: relative;
top: 5px;
}
ul#footnav {
margin: -5px 0 0 0;
padding: 0;
list-style: disc;
float: right;
}
ul#footnav li {
float: left;
position: relative;
width: 8em;
}
ul#footnav a, ul#footnav a:active, ul#footnav a:visited {
width: 8.5em;
padding : 0 0 0 .5em;
color: #d2bc2d;
}
ul#footnav a:hover {
text-decoration : none;
}
As you can see I've tried the IE hack of * html #menu { width: 850px; } but IE still isn't recognizing that. Of course I have IE7 beta 2 installed rather than IE6 so there may be problem there, I don't know.
By the way, the link to the website where I'm testing this out is...http://www.oasisgamingusa.com/testlayout/index.php
Also, does anyone know why in IE my footer doesn't appear at the bottom of the screen but in FF it does? I want it to look like it does in FF.
Thanks