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 Menu as images

Featured Replies

Declare them in CSS do a different ID for each nav id item.

 

Sorry if that is a bit brief I have to nip out now but am sure someone will come along with an example.

  • Author

Thanks would be great if someone has an example.

 

This is what i want to do

 

Home = one image

Hover = another image

 

and so on for 5 menu links

 

Thanks

http://superfluousbanter.org/archives/2004...atrix-reloaded/

 

 

http://cardeo.ca/2008/how-to-create-a-sing...igation-matrix/

 

That's the best method, apple use it for there menu on the apple store (in firefox hover over the menu, on the rights side near the search bar... right click > view background image) and you should see it.

 

Need any help with it just post back, if your working with uneven numbers it can get a bit confusing.

  • Author

Ok done it like this, Works fine does this look correct

 

a#home {

background-color: transparent;

background-image: url(/images/home_menu.png);

background-repeat: no-repeat;

list-style-type: none;

color: #666;

text-indent: -9999px;

width: 116px;

}

a#home:hover {

background-color: transparent;

background-image: url(/images/home_menuO.png);

background-repeat: no-repeat;

list-style-type: none;

color: #666;

text-indent: -9999px;

width: 116px;

}

It won't work correctly online, as when you use two images like that there will be a flicker between the two, which causese the menu item to disappear while the other one is loading (unless the images are cached). you should really have a look at what bocaj has posted as those tutorials would be the best way to implment a menu with images.

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.