Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Round Corner on Menu Link Hover

Featured Replies

Hiya guys. Saw this Magnolia site. When you hover the mouse on the menu it has an "aqua colour" background.

 

 

Is the rounded corner purely css with no image used? Anyone is kind enough to share the code? I tried for hours and nothing seems to work :(

try this http://greengeckodesign.com/menumatic

 

This uses css and jquery.

 

You can create the rounded edges using CSS3 i think, like: -

 

background-color:#fff ;

-moz-border-radius: 7px;

-webkit-border-radius: 7px;

 

But you would have to cater to older browsers that do not support this IE6 and 7.

Hi mate - I might be wrong but this might be the css code but i'm sure someone else probably knows better.

 

#nav-global li a:hover,
#nav-global li a:active,
#nav-global li a:focus {
   border-radius: 5px;
   -moz-border-radius: 5px; 
   -webkit-border-radius: 5px; 
   background: #7fcde4;
   color: #fff;

Actually just checked the code and it does work. No images used just css! Hope that helps,

 

J

  • Author

 

I think the link you provided requires mootools of some sort. It also discusses drop down menus.Both of which is just beyond my current knowledge of html and css.

 

 

You can create the rounded edges using CSS3 i think, like:

background-color:#fff ;

-moz-border-radius: 7px;

-webkit-border-radius: 7px;

 

But you would have to cater to older browsers that do not support this IE6 and 7.

 

All I wanted is just make the hovered menu link to have a round edge background. It doesn't contain any drop down of any sort.

 

Would appreciate if you can kindly expand the code you provided above. My head just couldn't make it to work and am struggling for a couple of days to figure it out.

  • Author

Hi mate - I might be wrong but this might be the css code but i'm sure someone else probably knows better.

 

#nav-global li a:hover,
#nav-global li a:active,
#nav-global li a:focus {
   border-radius: 5px;
   -moz-border-radius: 5px; 
   -webkit-border-radius: 5px; 
   background: #7fcde4;
   color: #fff;

 

Cheers mate. I shall try it now and see if it works. I'll let you know either way.

the code i quoted was copy & pasted from the source code of the site you linked too so you will need to just copy the following into your a:hover{}

 

{
   border-radius: 5px;
   -moz-border-radius: 5px; 
   -webkit-border-radius: 5px; 
   background: #7fcde4;
   color: #fff;

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.