ellisgl
05-21-2005, 01:15 AM
Ok.. Now I'm having an issue with the CSS with IE. Firefox works fine.
http://www.geeklab.net/images/ie-css-firefox.jpg
Notice how the FireFox screen shot has a border around the table and IE doesn't? Well I want IE to show it up like FireFox.
Here's the code that I'm using (css and html):
CSS:
a.mainlevel:link, a.mainlevel:visited {
/*background: url(menu_bg.png) no-repeat;*/
/*background:#eaeaea;*/
vertical-align: left;
font-size: 10px;
font-weight: bold;
color: #888888;
text-align: left;
/*padding-top: 0px;*/
padding-left: 1px;
/*height: 20px !important;*/
/*height: 25px;*/
width: 100%;
text-decoration: none;
}
table.moduletable {
width: 100%;
margin-bottom: 5px;
padding: 1px;
border-spacing: 0px;
border-collapse: separate;
cellspace: 1px;
background: black;
}
table.moduletable th {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
/*background: url(../images/subhead_bg.png) repeat-x;*/
background: #7F5D00;
color: #FFBA00;
text-align: right;
padding-top: 4px;
padding-left: 4px;
height: 21px;
font-weight: bold;
font-size: 10px;
text-transform: uppercase;
}
table.moduletable td {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
padding: 0px;
margin: 0px;
font-weight: normal;
background:#eaeaea;
}
Table layout:
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Main Menu
</th>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="index.php?option=com_frontpage&Itemid=1" class="mainlevel" id="active_menu">Home</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&task=section&id=1&Itemid=2" class="mainlevel" >News</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&task=blogsection&id=0&Itemid=9" class="mainlevel" >Blog</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_weblinks&Itemid=23" class="mainlevel" >Links</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_contact&Itemid=3" class="mainlevel" >Contact Us</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_search&Itemid=5" class="mainlevel" >Search</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&task=category&sectionid=3&id=7&Itemid=25" class="mainlevel" >FAQ's</a></td></tr>
</table>
</td>
</tr>
</table>
So what's my problem?
http://www.geeklab.net/images/ie-css-firefox.jpg
Notice how the FireFox screen shot has a border around the table and IE doesn't? Well I want IE to show it up like FireFox.
Here's the code that I'm using (css and html):
CSS:
a.mainlevel:link, a.mainlevel:visited {
/*background: url(menu_bg.png) no-repeat;*/
/*background:#eaeaea;*/
vertical-align: left;
font-size: 10px;
font-weight: bold;
color: #888888;
text-align: left;
/*padding-top: 0px;*/
padding-left: 1px;
/*height: 20px !important;*/
/*height: 25px;*/
width: 100%;
text-decoration: none;
}
table.moduletable {
width: 100%;
margin-bottom: 5px;
padding: 1px;
border-spacing: 0px;
border-collapse: separate;
cellspace: 1px;
background: black;
}
table.moduletable th {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
/*background: url(../images/subhead_bg.png) repeat-x;*/
background: #7F5D00;
color: #FFBA00;
text-align: right;
padding-top: 4px;
padding-left: 4px;
height: 21px;
font-weight: bold;
font-size: 10px;
text-transform: uppercase;
}
table.moduletable td {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
padding: 0px;
margin: 0px;
font-weight: normal;
background:#eaeaea;
}
Table layout:
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Main Menu
</th>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="index.php?option=com_frontpage&Itemid=1" class="mainlevel" id="active_menu">Home</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&task=section&id=1&Itemid=2" class="mainlevel" >News</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&task=blogsection&id=0&Itemid=9" class="mainlevel" >Blog</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_weblinks&Itemid=23" class="mainlevel" >Links</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_contact&Itemid=3" class="mainlevel" >Contact Us</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_search&Itemid=5" class="mainlevel" >Search</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&task=category&sectionid=3&id=7&Itemid=25" class="mainlevel" >FAQ's</a></td></tr>
</table>
</td>
</tr>
</table>
So what's my problem?