|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Top of CSS borders not rendering in IE
I have a onMouseOver event that draws a top border over text. This works fine with Mozilla/Firefox, but it doesn't render in IE. I think I know why -- it's because I used CSS to position the text beforehand, and in IE it doesn't bother drawing the top border because it's out of the text's bounding box, right?
So, how do I fix this so it works in IE? I've posted a sample page with the problem here: http://aaron.verge-rpg.com/vergebrd/test.html Any help would be appreciated. |
|
#2
|
||||
|
||||
|
Instead of mouseover event handlers, use simple CSS.
Code:
a:hover {
color: #fff;
border-top: 7px solid #fff;
}
gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#3
|
|||
|
|||
|
I would, except those links are different from the other links on the site. I don't want the hover to look like that on every link, just those few.
|
|
#4
|
||||
|
||||
|
use the class you have already asigned to the links.
Code:
a.dark:hover {
color: #ffffff;
border-top: 7px solid #ffffff;
}
|
|
#5
|
||||
|
||||
|
Damn, Akh. You beat me by 30 minutes.
I should have answered this before scanning the rest of the forum.cheers, gary |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Top of CSS borders not rendering in IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|