开发者

CSS Menus - loosing hover effect (corrected link)

On the following site:

http://steve.brettatkin.com/Templates/3-column.php

What needs to change with the CSS to not loose the hover green text color of the main navigation when moving over to the secon开发者_如何学编程dary links?

Here is the CSS file:

http://steve.brettatkin.com/inc/css/3-col.css

Thanks

Brett


add a class "whatever" to your li, then add this to your css:

.whatever:hover > a {
    color:#8EC23F !important;
}

You'll also need to set the doctype to

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

for FF


you dont need to specify :hover pseudo class to every child a tag of ul li and sub ul li.. just add a:hover inside main ul li and the further child elements of ul li ul li a or maybe deep enough ul li ul li ul li a will get the same property from the its parents (incase you didn't alter or add some extra css at the grand child level )..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜