The slight problem with an .htc file is that it assumes javascript is enabled (it doesn't work without it).
See if this page helps you: http://bonrouge.com/br.php
Main Topics
Browse All TopicsHello experts,
I'm designing a sidebar menu and I want the table cells to change color when hovered over. I have accomplished this through css for the hyperlinks within the cells and using display:block to change the cells. This all works fine and dandy, but I would prefer if the links were in the middle of the cells rather than at the top. I have tried different settings to no avail, including vertical-align:middle, margin-top, etc. All either do nothing or don't highlight the whole cell (such as in the case of margins). Can anyone help me out here? Thanks!
Here's some code I'm using....
The css:
a.menu:link {text-decoration:underline
a.menu:visited {text-decoration:underline
a.menu:hover {text-decoration:none;colo
a.menu:active {text-decoration:none;colo
the html:
<table align=center width=100% cellpadding = 0 cellspacing=0>
<tr><tr><td valign=middle height=50 align=center class=leftbar><b><a href="WAstatetaxes.aspx" class=menu>Washington State Taxes</a></b></td></tr>
<tr><td valign=middle height=50 align=center class=leftbar><b><a href="classactions.aspx" class=menu>Class Actions</a></b></td></tr>
<tr><td valign=middle height=50 align=center class=leftbar><b><a href="bio.aspx" class=menu>Biography</a></
<tr><td valign=middle height=50 align=center class=leftbar><b><a href="links.aspx" class=menu>Links</a></b></
<tr><td height=400> </td></tr
</table>
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The slight problem with an .htc file is that it assumes javascript is enabled (it doesn't work without it).
See if this page helps you: http://bonrouge.com/br.php
BonRouge, thanks for the help, your code seems to work for the most part, however there is still some discrepancy between browsers. http://www.seversonlaw.com
/*table-menu 1*/
#tablemenu1 {
width: 100%;
margin: 0 auto;
border-collapse:collapse;
table-layout:fixed;
}
#tablemenu1 td {
width:25%;
border-bottom-style:solid;
border-bottom-width:1px;
border-left-width:0px;
border-right-width:0px;
border-top-width:0px;
border-bottom-color: #EEEEEE;
}
#tablemenu1 td a {
text-decoration:none;
display:block;
padding:8px;
}
#tablemenu1 td a:link, #tablemenu1 a:visited,
#tablemenu1 a:active{
color: #555555;
background-color:#DDDDDD;
}
#tablemenu1 td a:hover {
color: #000000;
background-color:#EEEEEE;
}
#tablemenu1 td {
text-align: center;
}
* html #tablemenu1 td a {height:1px;}
Business Accounts
Answer for Membership
by: mreuringPosted on 2006-03-23 at 01:12:12ID: 16267202
In basics any element should be able to support the :hover pseudoclass and this rings true for all css2 browsers. That leaves you with Internet Explorer, which lacks the support you seek. However, Peter Nederlof has created a simple 'hack' to allow us the use of the :hover pseudoclass on any element in any current browser. rned/cssho ver.html
Have a look at his article: http://www.xs4all.nl/~pete
It explains the use of his '.htc' file and how to enable it in your website. It also shows you an alternative way of creating a menu, as that's what :hover is most often used on. I think it'll be a verry interresting read for you.
Using the mentioned technique you won't have to meddle with the anchor anymore, or at least to a lesser degree and you'll be able to swtich the background of the table-cell instead, best of both worlds, wouldn't you say?
Good luck,
Martin