Dears,
I have the following table and CSS. I am trying to keep all my styling in the css. How can do:
1. show the border of the cell/row using the mycss.css
2. I am using using onmouseover [shown in blue] to change the backgorund color of the cell/row, how can I do this using the mycss.css
----My xhtml snippet----
<table id="main">
<tbody>
<tr>
<td id="main_left">
<!-- Menu table-->
<table id="menu">
<tbody>
<tr>
<td>Main Menu</td>
</tr>
<tr>
<td id="menu"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a class="menulink"
href="">Tutorial</a></td>
</tr>
<tr>
<td class="menulink"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a class="menulink"
href="">Tools</a></td>
</tr>
<tr>
<td class="menulink"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a class="MenuLink" href="">About
Us</a></td>
</tr>
<tr>
<td class="menulink"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a
href="">Contact Us</a></td>
</tr>
</tbody>
</table>
-------My css snippet-------
table#menu{
border:solid black;
background-color:#EEEFEE;
border-width:thin;
width:150px;
height:100px
}
td#menu{
border:solid black;
border-width:thin;
I have the following table and CSS. I am trying to keep all my styling in the css. How can do:
1. show the border of the cell/row using the mycss.css
2. I am using using onmouseover [shown in blue] to change the backgorund color of the cell/row, how can I do this using the mycss.css
----My xhtml snippet----
<table id="main">
<tbody>
<tr>
<td id="main_left">
<!-- Menu table-->
<table id="menu">
<tbody>
<tr>
<td>Main Menu</td>
</tr>
<tr>
<td id="menu"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a class="menulink"
href="">Tutorial</a></td>
</tr>
<tr>
<td class="menulink"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a class="menulink"
href="">Tools</a></td>
</tr>
<tr>
<td class="menulink"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a class="MenuLink" href="">About
Us</a></td>
</tr>
<tr>
<td class="menulink"
onmouseover="this.style.backgroundColor='#FFFFFF'"
onmouseout="this.style.backgroundColor='#eeefee'"
align="left"><a
href="">Contact Us</a></td>
</tr>
</tbody>
</table>
-------My css snippet-------
table#menu{
border:solid black;
background-color:#EEEFEE;
border-width:thin;
width:150px;
height:100px
}
td#menu{
border:solid black;
border-width:thin;