try by adding a
#AboutNav{
}
block in your css
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
I mean this:
#AboutNav a:hover{
background: url('images/About/AboutNav2.png') 40 40px;
width: 100px;
text-decoration: none;
color: red; Arial, Helvetica, sans-serif;
font-size: 12px;
padding: 10px;
display: block;
}
will be valid for every a tag you're hovering on, not for the background or container you've stored your menu in, create a separate style for that.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
that ís the code you wrote.
I just explained underneath why it doesn't work.
if you want (for instance) your entire AboutNav to have a grey background, you'll need to add something like this:
#AboutNav{
background-color: grey;
}
because:
#AboutNav p{
background-color: grey;
}
would NOT set the background color for the entire aboutnav, but only for the p elements that are within your div with id aboutnav.
if you want to test your css 'on-the-fly' you may be interested in this thread (especially in the link provided by the OP). http://www.daniweb.com/business-exchange/show-off-your-projects/threads/402989
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
Just learning HTML syntax and found this post very helpful.
Thanks a lot.
Sam
always nice to hear :)
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433