Old 24-01-2005, 06:55   #1 (permalink)
Meilad
Registered User
 
Join Date: Jun 2004
Posts: 3
Mouseover table borders?

hey uh is it possible to show the top & bottom borders of a table on mouse over?

I tried:

A:hover.nav2 {
border: 1px solid #000000
bgcolor: #DFDFDF;
}

but it just makes a box around the text and not the cell... anyone?
  Reply With Quote
Old 24-01-2005, 07:00   #2 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
if you want the border on the table then try targeting the table directly,

a: hover table { border-bottom: 1px soi black;}

or the cell directly

a: hover td { border-bottom: 1px solid black;}

but i'm just guessing here.
  Reply With Quote
Old 24-01-2005, 10:02   #3 (permalink)
nakedintruder
www.nakedintruder.com
 
nakedintruder's Avatar
 
Join Date: Jan 2005
Location: Leeds, Yorkshire
Posts: 383
Send a message via MSN to nakedintruder
you can hover anything, and shouldn't wrap things in a's.

td.class {border:1px solid #000;}
td.class:hover {border:1px solid #CCC;}

...but it won't be supported in all browsers though, ie doesn't fully support CSS.
  Reply With Quote
Old 24-01-2005, 10:33   #4 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,513
you can add IE support for generic :hover using behaviours or javascript.

i think IE7 JS does this for example
__________________
  Reply With Quote
Old 24-01-2005, 12:36   #5 (permalink)
nakedintruder
www.nakedintruder.com
 
nakedintruder's Avatar
 
Join Date: Jan 2005
Location: Leeds, Yorkshire
Posts: 383
Send a message via MSN to nakedintruder
That's a Javascript Style Switcher replacing the off state definition for another using javascript, rather than support for a CSS:hover state definition.

Are there any plans for a new ie, does anyone know?
  Reply With Quote
Old 24-01-2005, 13:37   #6 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,513
I'm not sure I understand the distinction you're attempting to make

using the JS i'm talking about, IE would react as expected to the rule:

Code:
td:hover { ... }

Or any other element to which the :hover pseudo-class is applied.

As for the new IE, it's coming with Longhorn (the new Windows), which is expected sometime in 2006. Check the developers blog - http://blogs.msdn.com/ie/
__________________
  Reply With Quote
Old 04-02-2005, 15:57   #7 (permalink)
nakedintruder
www.nakedintruder.com
 
nakedintruder's Avatar
 
Join Date: Jan 2005
Location: Leeds, Yorkshire
Posts: 383
Send a message via MSN to nakedintruder
explain what you're doing matey, sorry. I thought you meant using javascript to rewrite the border styles on mouseover, then put them back on mouseout, so javascript is making the hover change, and not a CSS pseudo class. which isn't CSS support, but a work around. Is that what you meant?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8