Hi, I'm trying to get this little piece of code to work, but I can't get the entire row to change background when one of the two rows gets hovered. Here's the code:
@Robskiwarrior: Really? Thats amazing. Do you also have the permission to give back the WYSIWYG editor to me? :)
As for your problem, thomasoffinga, I tried it but I didn't seem to solve it. Added a class to both table rows but then still only one row would color blue. Is it possible to use divs for this, or would that make it more complicated for you?
Hmm.. I'm afraid it won't be possible to use DIVs, since it's a pretty big table and we need to use things like sorting. (It's a backend management system)
I know it's an old post, but i'm a beginner and i've encountered the same issue with rowspan and hovering.
Nevertheless, I've used more than one tbody in my table. I place my rowspan into a separate tbody with a specific class. Then apply the hover effect to this class.
and for styling
table tr:hover td{background:blue;}
In this example, the two rows only turn blue one at a time. Is it possible to affect them all at once?
Thanks.
@Thomasoffinga: to display code, wrap the following tags around it:
<pre><code>and of course</pre> < /code>Remove the space before the last backward slash though :)
As for your problem, thomasoffinga, I tried it but I didn't seem to solve it. Added a class to both table rows but then still only one row would color blue. Is it possible to use divs for this, or would that make it more complicated for you?
We are actually looking into alternatives anyway :)
Can you be a little more specific in what you are trying to accomplish?
Using :hover maybe doesn't cut it, since you can only hover one element at a time.
Or table:hover ?? That will highlight it all when hovering
http://jsbin.com/uhaja4/2
I know it's an old post, but i'm a beginner and i've encountered the same issue with rowspan and hovering.
Nevertheless, I've used more than one tbody in my table.
I place my rowspan into a separate tbody with a specific class. Then apply the hover effect to this class.
Ex:
And the CSS :
Hope that can help.
However, doing some sorting on this table won't be easy. But i know nothing about javascript.
ps : please forgive my english
LP
I know this is old. But I took Chris Coyier idea and wrote this:
You can see it working here => http://supera-v2.breathwebdesign.com/coachingpersonal#comprar
Sweet.
I made a reduced demo in case this comes up again: http://codepen.io/chriscoyier/pen/wLGDz