![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm having a problem with some CSS formatting. For some reason the first panel in my menu works fine when the mouse rolls over(the panel changes colour & text shifts to the left slightly). The rest of the panels don't however- they only activate when you roll over the text itself & because the text shifts to the left on mouse-over it then de-activates...etc. The code looks the same for the one that works & the ones that don't so i'm missing something. Perhaps you can help. Here's the code for the table followed by the css i'm using. table width="170" border="0" cellpadding="0" cellspacing="0" bgcolor="#4862c8" tr td height="25" div class="menudiv"><a href="javascript:;">home</a></div /td /tr tr td height="25"><div class="menudivyellow" a href="javascript:;">rooms</a></div></td /tr tr td height="25"><div align="left" class="menudiv"><a href="javascript:;">clubs</a></div></td /tr tr td height="25"><div align="left" class="menudivyellow"><a href="javascript:;">meals</a></div></td /tr tr td height="40"><div align="left" class="menudiv"><a href="sessions/index.html">sessions / <br time / fees</a></div /td /tr tr td height="40"><div align="left" class="menudivyellow"><a href="javascript:;">inspection <br report /a></div /td /tr tr td height="25"><div align="left" class="menudiv"><a href="javascript:;">newsletter</a></div></td /tr tr td height="25"><div align="left" class="menudivyellow"><a href="javascript:;">find us</a></div></td /tr tr td height="25"><div align="left" class="menudiv"><a href="javascript:;">contact us</a></div></td /tr /table CSS--------------------------------------------------------- .menudiv { display: block; background-color: #DF273E; text-decoration: none; font-family: "Trebuchet MS"; font-size: 14px; color: #FFFFFF; margin-left: 70px } .menudiv a { display: block; background-color: #4862C8; text-decoration: none; color: #FFFFFF} .menudiv a:hover { display: block; background-color: #DF273E; text-decoration: none; ; color: #FFFFFF; margin-left: -20px} .menudivyellow { display: block; background-color: #FFD800; text-decoration: none; font-family: "Trebuchet MS"; font-size: 14px; color: #FFFFFF; margin-left: 70px } .menudivyellow a { display: block; background-color: #4862C8; text-decoration: none; color: #FFFFFF} .menudivyellow a:hover { background-color: #FFD800; text-decoration: none; ; color: #4862C8; margin-left: -20px} |
#3
| |||
| |||
|
|
Can you post a link to the page so I can see this happening? |
![]() |
| Thread Tools | |
| Display Modes | |
| |