HighDots Forums  

Change Table Row Background

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Change Table Row Background in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Change Table Row Background - 06-03-2007 , 05:29 PM






Hello,

I have seen a few tables where when the mouse is over a Row the
background changes.
Is this done only with CSS?

How can I do this?

Thanks,
Miguel


Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Change Table Row Background - 06-04-2007 , 02:12 AM






Scripsit Jonathan N. Little:

Quote:
As with your second post you need JavaScript to achieve that.

Not necessarily, you need it for MSIE, but with compliant web browsers
it can be done with CSS:
- -
TR:hover { color: #f00; background-color: #ffe; }
It works well on MSIE 7, too. (By the way, there is no such thing as a
compliant web browser, though some browsers comply with some parts of some
CSS specifications or drafts.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.