MaureenT
05-09-2009, 03:11 AM
IE's issues with CSS strikes again!
If you go to this URL, http://www.gpid.com/history.php , with Firefox or some other Gecko browsers, you will notice that the links on the submenu (located directly below the header, above the page title) have a double line border on the right, left and bottom. Unfortunately, the bottom border does not appear in IE6 or 7, though it does in IE8. I have tried various things in the stylesheet to fix this, but have had no luck so far, so I'm turning to you guys in the hopes that someone will have a solution. By the way, a top border also will not appear in IE6 and 7, but that's not a problem for me in this situation since I don't have a top border.
Below are the relevant styles and HTML code.
CSS:
#submenuContainer {
text-align: left;
width: 520px;
padding-top: 5px;
padding-bottom: 10px;
margin: auto;
}
.submenu {
text-align: center;
width: 520px;
}
.linkBox {
border-left: 6px double #004891;
border-right: 6px double #004891;
border-bottom: 6px double #004891;
}
.submenuLink a, .submenuLink a:visited {
text-align: center;
font-weight: bold;
text-decoration: none;
color: #000000;
padding: 0px 4px 0px 4px;
}
.submenuLink a:hover, .submenuLink a:active {
background-color: #0182E5;
color: #000000;
}
HTML:
<div id="submenuContainer">
<div class="submenu"><span class="linkBox submenuLink"><a href="history.php">General History</a></span> <span class="linkBox submenuLink"><a href="board.php">Board Members</a></span> <span class="linkBox submenuLink"><a href="staff.php">GPID Staff</a></span></div>
</div>
In case you're wondering why I have the borders in the linkBox style instead of including them in the submenuLink style, it's because, on hover, a background appears on the links, and I wanted the border to be outside the background in all browsers, in other words, have the background go only to the inside edge of the border. This was the only way I could think of to accomplish it that would work in every browser.
I'd appreciate any suggestions, though I would also really appreciate it if those who post a solution first test it themselves to see if it works. The last time I looked for answers to a CSS problem here, every suggestion I got didn't work.
P.S. I hate IE. :mad:
If you go to this URL, http://www.gpid.com/history.php , with Firefox or some other Gecko browsers, you will notice that the links on the submenu (located directly below the header, above the page title) have a double line border on the right, left and bottom. Unfortunately, the bottom border does not appear in IE6 or 7, though it does in IE8. I have tried various things in the stylesheet to fix this, but have had no luck so far, so I'm turning to you guys in the hopes that someone will have a solution. By the way, a top border also will not appear in IE6 and 7, but that's not a problem for me in this situation since I don't have a top border.
Below are the relevant styles and HTML code.
CSS:
#submenuContainer {
text-align: left;
width: 520px;
padding-top: 5px;
padding-bottom: 10px;
margin: auto;
}
.submenu {
text-align: center;
width: 520px;
}
.linkBox {
border-left: 6px double #004891;
border-right: 6px double #004891;
border-bottom: 6px double #004891;
}
.submenuLink a, .submenuLink a:visited {
text-align: center;
font-weight: bold;
text-decoration: none;
color: #000000;
padding: 0px 4px 0px 4px;
}
.submenuLink a:hover, .submenuLink a:active {
background-color: #0182E5;
color: #000000;
}
HTML:
<div id="submenuContainer">
<div class="submenu"><span class="linkBox submenuLink"><a href="history.php">General History</a></span> <span class="linkBox submenuLink"><a href="board.php">Board Members</a></span> <span class="linkBox submenuLink"><a href="staff.php">GPID Staff</a></span></div>
</div>
In case you're wondering why I have the borders in the linkBox style instead of including them in the submenuLink style, it's because, on hover, a background appears on the links, and I wanted the border to be outside the background in all browsers, in other words, have the background go only to the inside edge of the border. This was the only way I could think of to accomplish it that would work in every browser.
I'd appreciate any suggestions, though I would also really appreciate it if those who post a solution first test it themselves to see if it works. The last time I looked for answers to a CSS problem here, every suggestion I got didn't work.
P.S. I hate IE. :mad: