Page 1 of 1
styling a tr a:hover
#1
Posted 12 January 2012 - 07:00 PM
How would I style the hover on this table here:
http://universitycom...niversity-guide
I want the hover to be light a like blue so you know you are hovering over that line, and also make that whole line a hyperlink, but kind of don't know where to start?
I have tried a few things but It doesn't seem to be working :/
http://universitycom...niversity-guide
I want the hover to be light a like blue so you know you are hovering over that line, and also make that whole line a hyperlink, but kind of don't know where to start?
I have tried a few things but It doesn't seem to be working :/
#3
Posted 12 January 2012 - 08:24 PM
If use use a HTML5 doctype then you can sematically make a whole table row a link:
<a href="#"> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </a>
#4
Posted 13 January 2012 - 02:05 PM
BlueDreamer, on 12 January 2012 - 08:24 PM, said:
If use use a HTML5 doctype then you can sematically make a whole table row a link:
<a href="#"> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </a>
I am using a HTML5 Doctype and I've done that, However, when I apply a class or hover, it doesn't work? What am I missing?
I guess I just style that class? right? Bit confused what to put in the css?
#5
Posted 14 January 2012 - 05:51 PM
Polite 'BUMP'
This post has been edited by OwenONeill: 14 January 2012 - 05:51 PM
#7
Posted 14 January 2012 - 07:30 PM
<a href="#" class="hover"> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </a>
CSS
a.hover:hover {color: red;}
???
#8
Posted 15 January 2012 - 02:26 PM
Faevilangel, on 14 January 2012 - 06:05 PM, said:
tr:hover {
background:#000;
}
Will only work on recent browsers (not IE) or you can use jQuery like this
I tried this and it didnt work?
Samus, on 14 January 2012 - 07:30 PM, said:
<a href="#" class="hover"> <tr> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </a>
CSS
a.hover:hover {color: red;}
???
I also tried this and it didn't work? I thought I was doing something wrong as I had tried both of these before asking again? I had a look online for jquery answers, but it must be able to be done through HTML 5!
Share this topic:
Page 1 of 1
Help



















