Hey guys! Haven't been here for a while. The place has really picked up!
Heres the issue I've been having. I have a navigation bar in a table, and when you hover, they highlight. But now what I have to do is get the button that they have clicked on to remain highlighted.
heres my code:
/* This one is for the highlighting of the current button that has been clicked. This doesn't work */ td.current { filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#ffffff',endColorStr='#dcdcdc',gradientType='0'); width: 100% } /* This one is for the hovering of the different buttons. This works */ .highlight td :hover{ filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#ffffff',endColorStr='#dcdcdc',gradientType='0'); background-color: #F0F0F0; width: 100%; } ... <table ... class="highlight"> <tr> <td class"current" ><a href="index.htm">Home</a></td> </tr>
class name filter problems
oh I see, when you declare td:hover this action will only work in certain browsers. I think it only works in Netscape Navigator and broswers along them lines. It wont work in IE though.
When you say it works, I dont think the actual gradient is working. I think it is just changing the backgrond colour to grey?
hope this is helpfull
Rees
class name filter problems
As far as I know, in IE the :hover pseudo-class will only work properly with anchors. I believe this is a fault with IE. As for changing a bg colour on click, I'm pretty sure you'll need to do this with JavaScript. I can't help you any further because I haven't a clue what the "filter:progid:DXImageTransform.Microsoft.Gradient" stuff is all about!
class name filter problems
filter:progid:DXImageTransform.Microsoft.Gradient
means a FILTER will be applied, with a PROGID of DXIMAGEetc etc. This is so the filter knows what to do. TRANSFROM will transform it, MISCROSOFT means it's an MS only thing, and GRADIENT will aplly a gradient.
class name filter problems
MISCROSOFT means it's an MS only thing
Yes, I guessed as much, which is why I immediately lost the will to live and couldn't even be bothered to find out for myself what it was all about

Me; biased - never!
