472,143 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

Bold a <td>

158 100+
I'm rather new to html/javascript. I'm wanting a my menu which is in a table to bold whenever the user evokes the onmouseover event. how is the easiest way to do this?

Thanks!
Sep 27 '08 #1
5 2027
rnd me
427 Expert 256MB
Expand|Select|Wrap|Line Numbers
  1. <style>
  2.    table td { font-weight: bold; }
  3. </style>
Sep 27 '08 #2
Markus
6,050 Expert 4TB
Expand|Select|Wrap|Line Numbers
  1. <style>
  2.    table td { font-weight: bold; }
  3. </style>
And with a hover effect

Expand|Select|Wrap|Line Numbers
  1. <style>
  2.    table td:hover { font-weight: bold; }
  3. </style>
Sep 27 '08 #3
acoder
16,027 Expert Mod 8TB
That won't work in IE6 (in all modes) and IE7 in quirks mode, so you'll need JavaScript for it to work across all browsers.
Sep 27 '08 #4
Markus
6,050 Expert 4TB
That won't work in IE6 (in all modes) and IE7 in quirks mode, so you'll need JavaScript for it to work across all browsers.
Oh really?!

(That was sarcasm, if you didn't get it. :P Silly IE)
Sep 27 '08 #5
Jollywg
158 100+
Thanks for the replies it works now!
Oct 2 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by bissatch | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.