开发者

menu hover and block

开发者 https://www.devze.com 2023-01-18 11:21 出处:网络
Usually, making aa block, you just have to hover on the <li> to highlight.. not on the text... i think a have done it right... 开发者_如何学JAVAbut only hovering on the TEXT make the text chang

Usually, making a a block, you just have to hover on the <li> to highlight.. not on the text...

i think a have done it right... 开发者_如何学JAVAbut only hovering on the TEXT make the text change color... hovering on the box (li) dont...

i have not taken the good technique, or just screw somewhere, i need your pointer please

thanks in advance

here is the page


Pretty simple:

Remove the padding declarations from #menulistbox li by removing these lines.

padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 5px;

Then add this definition for the link

#menulistbox li a {
    display: block;
    padding: 5px 0 5px 5px;
}

That's it :)

P.S. Check out CSS Shorthand Syntax to make your life easier and your code tidier :)

0

精彩评论

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