|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css link syntax
I have a link that is inheriting a hover state of underlined from my basic link declaration. I want to override the hoverstate in this instance.
Any help would be appreciated, thanks. CSS: PHP Code:
HTML: PHP Code:
|
|
#2
|
||||
|
||||
|
" #nHd:hover{text-decoration:none;}"
s/b #nHD a:hover {...} should work. cheers, 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. Ask a better question, get a better answer. |
|
#3
|
|||
|
|||
|
The original statement works perfectly in all my browsers (except for NS4, of course).
What browser is not showing you the intended effect? Hope this helps, Jeroen The suggested #nHD a:hover {...} would work if the HTML would include: <div id="nHd"><a href="cakes.htm">Cakes</a></div> |
|
#4
|
|||
|
|||
|
I am using IE 6 PC. I understand how the statement would work when it is applied to a containing div. I am trying to figure out a way to add a class directly to the link to override the hoverstate.
thanks! |
|
#5
|
||||
|
||||
|
Code:
<style>
...
.newhoverstate {...}
...
</style>
<body>
...
<a class="newhoverstate" href="#">some text</a>
...
</body>
cheers, gary |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css link syntax |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|