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 links using <ul> tag

Featured Replies

Hello all.

 

I hope you can help me.

 

I'm trying to add a background to indicate the current page of my links in the left hand nav bar of my website. I've managed to acheive this in my horizontal nav bar, but no joy in my left nav bar. I haven't actually created a 'class' for it at the moment because since it didn't work, I deleted it.

 

Could someone give me some advice?

 

http://www.beautyboxworcester.co.uk

 

Thanks very much all!!

You're actually using a long-winded method for the top menu. The home page has

<li><a href="index.html" class="current">Home </a></li>

and the about page has

<li><a href="#" title="about us" class="current">About </a></li>

so you are changing the position of class="current" on every page.

 

If you use the "matched pairs" principle you can have the same menu code on every page, and then put it all in a PHP "include" file so that you only edit one file if your menu changes instead of editing every page.

 

See http://www.wickham43.net/highlighthome.php

the second example (the first is what you have now).

 

The third example is the same as the second, but with image buttons.

 

Then do the same for the side menu.

  • Author

You're actually using a long-winded method for the top menu. The home page has

<li><a href="index.html" class="current">Home </a></li>

and the about page has

<li><a href="#" title="about us" class="current">About </a></li>

so you are changing the position of class="current" on every page.

 

If you use the "matched pairs" principle you can have the same menu code on every page, and then put it all in a PHP "include" file so that you only edit one file if your menu changes instead of editing every page.

 

See http://www.wickham43.net/highlighthome.php

the second example (the first is what you have now).

 

The third example is the same as the second, but with image buttons.

 

Then do the same for the side menu.

 

 

Cheers mate thats great!

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.