| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
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? |
|
|
|
|
|
#2 (permalink) |
|
volkswagen yellow & gold
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. |
|
|
|
#6 (permalink) |
|
vague™
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:
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/ |
|
|
|
#7 (permalink) |
|
www.nakedintruder.com
|
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? |
|
![]() |