3
Contributors
8
Replies
9
Views
6 Years
Discussion Span
Last Post by Dandello
0

But where is the rest of it? Without the html this is supposed to style, we have no way to know where the problem might be - aside from that space in front of the a:hover which should make no difference.

0

sorry for late reply coz i've been busy...

this is my html code:

<div id="hover">
<a href="home.jsp">home</a>
<a href="profile.jsp">profile</a>
<a href="contact.jsp">contact</a>
</div>
0

What's the styling on #hover? Does it have anything that might conflict with

a:hover {text-decoration: underline;}

Have you tried

#hover a:hover {text-decoration: underline;}

?

0

I havent tried that coz I want to apply hover on all link without specifying the class or id???is it possible?

0

All I'm suggesting is to test it that way. There still may be something keeping the items in the div from inheriting the way you think they should.

You might also try

a:link:hover {text-decoration: underline;}
0

maybe this might help..classes are for multiple items (you can specify a certain div to be a specific class without affecting everything else with in that apparent ID)

...ID's are for one major item(s)..you can use classes repeatedly where ever you wish. ID's are ment for things like containers, header, footer..ect..

0

Also validate both your html and css. - Errors and strange behavior can slip in that way as well.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.