Ash:o
08-22-2004, 07:01 AM
Hi all,
OK were to start, i've made up a table and i would like the rows in the table to change color when i hover over then, i have got the text to change but not the rows background color which i would like to change when i hover over them.
can someone help please heres the code. oooo this is my first go at CSS.
Yours Ashley
--------------------------
Page1 html_hover_test.html
--------------------------
<html>
<head>
<meta http-equiv="Content-Language" content="en-au">
<link rel="stylesheet"
type="text/css" href="CSS_hover_test_sheet.css" />
</head>
<body>
<div align="center">
<table border="1" cellspacing="1" style="border-collapse: collapse" width="75%">
<tr>
<td class="row1" width="11%" <p><b><a class="row1" href="webmaster.html" target="_blank">
<p align="center"<span style="text-decoration: none">Home</span></a></b></p></td>
<td class="row2"> </td>
<td class="row3"> </td>
<td class="row4"> </td>
<td class="row5"> </td>
<td class="row6"> </td>
<td class="row7"> </td>
<td class="row8"> </td>
</tr>
</table>
</div>
</body>
</html>
-------------------------------
Page2 CSS_hover_test_sheet.css
-------------------------------
table {background-color: #99ccff}
.row1 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row2 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row3 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row4 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row5 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row6 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row7 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row8 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
body {background-image: url("backgroun_test.jpg")}
a.row1:link {color: #ffffff}
a.row1:visited {color: #ffffff}
a.row1:hover {color: #c0c0c0}
OK were to start, i've made up a table and i would like the rows in the table to change color when i hover over then, i have got the text to change but not the rows background color which i would like to change when i hover over them.
can someone help please heres the code. oooo this is my first go at CSS.
Yours Ashley
--------------------------
Page1 html_hover_test.html
--------------------------
<html>
<head>
<meta http-equiv="Content-Language" content="en-au">
<link rel="stylesheet"
type="text/css" href="CSS_hover_test_sheet.css" />
</head>
<body>
<div align="center">
<table border="1" cellspacing="1" style="border-collapse: collapse" width="75%">
<tr>
<td class="row1" width="11%" <p><b><a class="row1" href="webmaster.html" target="_blank">
<p align="center"<span style="text-decoration: none">Home</span></a></b></p></td>
<td class="row2"> </td>
<td class="row3"> </td>
<td class="row4"> </td>
<td class="row5"> </td>
<td class="row6"> </td>
<td class="row7"> </td>
<td class="row8"> </td>
</tr>
</table>
</div>
</body>
</html>
-------------------------------
Page2 CSS_hover_test_sheet.css
-------------------------------
table {background-color: #99ccff}
.row1 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row2 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row3 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row4 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row5 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row6 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row7 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
.row8 {background-color:#000080; color:#FFFFFF;font-size: 8pt; font-family: arial; font-weight: bold}
body {background-image: url("backgroun_test.jpg")}
a.row1:link {color: #ffffff}
a.row1:visited {color: #ffffff}
a.row1:hover {color: #c0c0c0}