|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
cell formatting
Hi,
Really new to this css stuff and i'm sure i'll get a beratting for asking such a simple question but here goes... What i need is a cell with a linked word in it. Initial state is white background with blue text. On rollover i would like the whole cell to turn blue with white text. I'm sure this is simple but just need a point in the right direction. Thanks for any help Tom |
|
#2
|
||||
|
||||
|
It's a good question actually, no beratting here
, You can use the 'hover' psuedoclass on almost any tag including table, td, and tr. CSS PHP Code:
#FFFFFF; = white #0000FF; = blue EDIT: Actually, that only works in Firefox. It's fairly borked in IE. The only suggestion that I have for you would be to use javascript, which I know can do it, I just don't know how.
__________________
The Standards! CSS 2 - CSS 3 - w3c CSS Validator - XHTML 1.1 - HTML 4.01 - w3c (X)HTML Validator - ActionScript Reference Links! Bert's Door and Lock Service | Brandon Erik Bertelsen | TextPattern Last edited by 1beb : June 24th, 2004 at 12:33 PM. |
|
#3
|
||||
|
||||
|
While this is really a solution for the javascript board...
PHP Code:
You can also use the "this" object: PHP Code:
Though I've had some trouble with the "this" method of doing it. Hope this helps!
__________________
Proud member of the T.S.N.B.U.F.L (tables should not be used for layout) alliance. "Only use elements for their intended purpose. You wouldn't try to make coffee with a telephone, would you?" -Me Last edited by TheJim01 : June 24th, 2004 at 12:55 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > cell formatting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|