Bold a <td>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jollywg
    New Member
    • Mar 2008
    • 158

    Bold a <td>

    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!
  • rnd me
    Recognized Expert Contributor
    • Jun 2007
    • 427

    #2
    Code:
    <style>
       table td { font-weight: bold; }
    </style>

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by rnd me
      Code:
      <style>
         table td { font-weight: bold; }
      </style>
      And with a hover effect

      Code:
      <style>
         table td:hover { font-weight: bold; }
      </style>

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        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.

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Originally posted by acoder
          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)

          Comment

          • Jollywg
            New Member
            • Mar 2008
            • 158

            #6
            Thanks for the replies it works now!

            Comment

            Working...