Previous Message
Next Message

Trying to retain CSS rounded corner during hover

Sent by Justin Stressman on 20 May 2011 19:07


On Fri, May 20, 2011 at 2:12 PM, Keith Purtell
[EMAIL-REMOVED]> wrote:
> On the top right of the draft version of a page, the Contact link is
> supposed to retain its rounded corner during hover. However, it's
> reverting to a rectangle, and I'm not sure why.
>
> http://www.keithpurtell.com/kthings/bab/index01.htm
>
> (Yes, I know that I haven't yet added the code for rounded corners in IE.)
>
> - Keith Purtell

It looks to me like it's because you've set the hover background color
on the "a" element inside the "li" element that actually has the
rounded corner.

So that "a" becomes solid and for some reason overlaps that.

Setting "overflow:hidden" on the "li" element fixed it.

You could also use something like "ul.navman li:last-child a {
border-top-right-radius: 20px;}" I'm guessing. That should work as
well, although I haven't tested it.

Hope this helps.

-- 
ç¿ãæ¨ããè½ã¡ã
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: