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.

CSS Pop-Up Menu - Need To Tell User Where They Are On The Website - How?

Featured Replies

My Site: here

My CSS: here

 

As you can see, I've got my css menu working in all browsers from IE6 to FF & Opera, however I have been unable to implement one crucial feature...

 

If a user clicks on the 'COMMUNITY' link, or either of the three links in the 'COMMUNITY' pop-up menu, I would like the 'COMMUNITY' box to remain white (the same as when you hover over it) as opposed to going back to its default grey background...

 

How do I do this in my current css menu and thus let the user know exactly where on the site they are?

Well I'm still racking my brain over this, anyone care to please shed some light?

If I think what your asking is "How do I keep the menu item white when the user visits that page?" then I think you need to give the chosen menu item a unique class or id in the HTML and then style it in the CSS, for example "active". You can then give that active class it's own style, in this case a white background. Something like this:

 

HTML:<li [i]class="active"[/i]><a href="/community.php" title="Community">COMMUNITY</a>

CSS: #menu .active a { background: #fff; }

There's a more detailed tutorial here.

 

Might need to play around with the css until it works, but I managed to do it my site. See nav on right hand side. Portfolio is darker blue and text is left-aligned.

That is exactly what I am looking to do :). I'm having a go now :).

Brilliant, was exactly what I needed :). You just forgot to add an 'a' after #menu .active, but I figured that out in no time :).

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.