Guest_imported
New member
- Jan 1, 1970
- 0
Hi.
Is there a way that 'rollover links' can be placed into table cells so that when a user hovers over a cell, the colour of the text changes aswell as the entire table cell background colour? I would like to do this without using images.
The following accomplishes the efect but only changes the background behind the text and not the whole cell.
td.menu {color: #fc0; background: #306; width: 50%; margin- right: auto; margin-left: auto; margin-top: 0; border: 6px #fc0 ridge; }
.menu a { font-weight: bold; font-family: Arial, sans-serif;}
.menu a:link { color: #ffc; background: transparent;}
.menu a:visited { color: #ffc; background: transparent;}
.menu a:active { color: blue; background: lime;}
.menu a:hover { color: green; background: #fc0; text-decoration: none;}
Thanks all
Is there a way that 'rollover links' can be placed into table cells so that when a user hovers over a cell, the colour of the text changes aswell as the entire table cell background colour? I would like to do this without using images.
The following accomplishes the efect but only changes the background behind the text and not the whole cell.
td.menu {color: #fc0; background: #306; width: 50%; margin- right: auto; margin-left: auto; margin-top: 0; border: 6px #fc0 ridge; }
.menu a { font-weight: bold; font-family: Arial, sans-serif;}
.menu a:link { color: #ffc; background: transparent;}
.menu a:visited { color: #ffc; background: transparent;}
.menu a:active { color: blue; background: lime;}
.menu a:hover { color: green; background: #fc0; text-decoration: none;}
Thanks all