Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single Vertical image rollover

Status
Not open for further replies.

Slimsteve

Technical User
Jun 10, 2003
67
GB
Does anyone know if it is possible in css to use a single image as the background for a vertical rollover menu.

To give you an idea of the image I have been asked to used see here
The top half is the normal menu links and when the user hovers over a link I need to show the relevant area in the bottom half of the image.


Thanks

Slim
 
Rounded corners are what makes this tricky - you will have to use 3 different images as the background image in your .css.

Give the top item in the dropdown list the background of topround.gif (or whatever you call it)

The middle item(s) middle.gif

The bottom item botround.gif

Try that - should work ;-)

 
If I were you I would get rid of the images and use text instead. With a little CSS you can make your text links look just like the example you have provided.

The main benefits of doing it this way:
- Search Engine friendly text links
- a more accessible menu for non-graphical browsers
- MUCH easier to update with new/modified links

Tony

Spirax-Sarco - steam traps control valves heat exchangers
Sun Villa - Luxury Florida accommodation
 

Thanks everyone, I agree with your comments.

I didn't consider the search engine and accessibilty stuff, I will be using the good old hyperlinks with css to provide link rollover colours.

Slim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top