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 Graphic Hover Effects

Featured Replies

I know this can be done - I just don't know how.

 

Can anyone tell me the code you use to make a graphic hover effect. Like having a red button change to a yellow button when you roll over it?

Hi,

 

Ooo yes, have used graphic rollovers a few times, this one is very good, and works seamlessly to by cutting out loading the "rollover" and "Click" images as all the states are within one big (not file size) image, the CSS basically moves the graphic depending on the state of the button.

 

Here is the "Easy-to-Follow" tutorial.

 

Website: www.tutorio.com/tutorial/pure-css-image-rollovers

 

Good luck :)

Hi Melos

 

This is the kind of technique I use - you create the 'off' and 'on' states in one image and manipulate that with CSS. The examples Ben links to has three states - normal off state, the hover state and the hit state.

 

You might also find these links useful:

 

Fast Rollovers

CSS menu hover redux

Taming Lists

Uberlink CSS menus

CSS Sprites

 

Alternatively you can happily pinch my code from this site:

www.heriot-toun.co.uk

 

the style sheet for the navs is here:

Site Navs

 

Alternatively you could do this without a graphic and use background colours that change on the hover state and you might find these two links useful to find out more about that:

 

Listamatic

Lit-O-Matic

 

Any problems let me know know and I'd be happy to help you out.

 

E

Can you do it in Adobe Imageready? I would really like to try this but never took the time to read a tutorial or anything :(

Wow, thanks to Eskymo for that collection of very helpful links. I'm already a big fan of Project Seven and A List Apart, but some of the others were brand new to me. Thanks for offering the code for us to swipe, too! :)

Question: Are there any problems with rollovers with CSS2 and certain versions of browsers? Are there any other conflicts that anyone has experienced with their CSS pages in certain browsers? Some people think that tables take longer to read than CSS.

yeah but - you shouldn't be using tables for layout, full stop so why even consider the option!

  • 2 weeks later...

I reviewed those links and they are very helpful, and I will definately be bookmarking them.

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.