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.

Glossy horizontal menu tabs ... how to do drop downs?

Featured Replies

Hi people,

 

I have these glossy menu tabs on my website..... I am now looking to add drop down menus off the tabs, I would like to keep the menu tabs but just add the drop links if poss through the css etc... can it be done?

 

thanks in advance, Jay ;-)

You will need to use javascript for this. Look at the CSS visibility property to change the visibility of the menu.

 

It's basically just a case of adding in code to make the menu appear when you rollover the heading, and then a bit more code to make it disappear when you need it to.

  • Author

ok thanks for the pointer .... without the exact code definitions I would not have a clue what / where to add

 

thanks again for the reply

Ok, well I don't know how experienced you are at javascript, but look at:

 

getElementById()

 

This method allows you to target a div according to the id you have assigned it. You can extend this method with all kind of things to affect the CSS properties it's possible to apply to the div. In your case you would want to use:

 

document.getElementById('yourdivid').style.visibility = "hidden";
document.getElementById('yourdivid').style.visibility = "visible";

 

Just replace yourdivid with the id of your div. You can do pretty much anything you like this way, so to set the position of the div for instance you would want to use somthing like the following:

 

document.getElementById('yourdivid').style.top = postop+"px";
document.getElementById('yourdivid').style.left = posleft+"px";

 

Here again replace yourdivid with the id of your div, postop and posleft would be variables you have assigned a numerical value to.

 

Hope that gets your started.

  • Author

Hussey,

 

thanks for the details..... my experience on js is very limited and maybe this is beyone me, might have to look at getting some help on this or would it be easier changing the horizontal menu bar for a drop down already built in?

 

thanks for your help

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.