Hi,
(note: I cannot have client-side scripting, like dhtml)
I am trying to build an html table that has 10 columns and N number of rows of data. When a mouse hovers over a cell in column 2 and row x, I would like the background of cell(2,x) to change AND the background of cell(5,x) to change to the same color. Basically, I would like css to change the background color of two cells in the same row when there is a mouse hover. However, I do not want to highlight the entire row on mouse hover... just 2 cells on that particular row.
I would be fine hard-coding each cell to tell it what to do and when and where.... the page is being dynamically built by a server-side scripting langauge, so I can script the css into each cell. What is most important is that the color changing behavior happens when the client moves his/her mouse over various cells in the table.
Please let me know if this can be done using just css. If yes, please provide some sample code (if possible).
Thank you in advance!
-Mike
(note: I cannot have client-side scripting, like dhtml)
I am trying to build an html table that has 10 columns and N number of rows of data. When a mouse hovers over a cell in column 2 and row x, I would like the background of cell(2,x) to change AND the background of cell(5,x) to change to the same color. Basically, I would like css to change the background color of two cells in the same row when there is a mouse hover. However, I do not want to highlight the entire row on mouse hover... just 2 cells on that particular row.
I would be fine hard-coding each cell to tell it what to do and when and where.... the page is being dynamically built by a server-side scripting langauge, so I can script the css into each cell. What is most important is that the color changing behavior happens when the client moves his/her mouse over various cells in the table.
Please let me know if this can be done using just css. If yes, please provide some sample code (if possible).
Thank you in advance!
-Mike