Jump to content


Photo

table highlighting and mouseover questions??


  • Please log in to reply
4 replies to this topic

#1 timgetback

timgetback
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 06 August 2006 - 07:15 PM

I new with css.... right now im filtering my tables..
table table table table td {filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; -khtml-opacity:0.6;
}
and i wanted to make it so when i mouse over the  table the filter changes to:
{filter:none; -moz-opacity:1.0; opacity:1.0; -khtml-opacity:1.0;}
Please help..

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 06 August 2006 - 07:41 PM

Use the :hover pesudo selector.
table table table table td:hover {filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; -khtml-opacity:0.6;)
Keep in mind though some browsers, such as IE6 and below) dont support the :hover pesudo selector. Instead you'll have to use javascript.

#3 timgetback

timgetback
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 07 August 2006 - 11:50 AM

Ok so it would look like......
table table table table td:hover {filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; -khtml-opacity:0.6;)
table table table table td {filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; -khtml-opacity:0.6;}


#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 August 2006 - 11:51 AM

Yes but you want to use:
table table table table td:hover {filter:none; -moz-opacity:1.0; opacity:1.0; -khtml-opacity:1.0;}


#5 timgetback

timgetback
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 07 August 2006 - 12:38 PM

Yea..... it didnt extacly work.. heres what i wrote:
<style type= "text/css">
table table table table td:hover {filter:none; -moz-opacity:1.0; opacity:1.0; -khtml-opacity:1.0;}
table table table table td {filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; -khtml-opacity:0.6;} 
</style>
its filtering to 40% but its not unfiltering when i use th:hover




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users