3 replies [Last post]
mara_mcb
mara_mcb's picture
User offline. Last seen 1 year 24 weeks ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-08-24
Posts: 1
Points: 2

I'm working on a project where I'm creating a profile site for a group of seed cleaning plants. I have links to each plant on one side and would like there to be roll over images for each of them showing their location. I'm at a complete lost as to what to try. I'm still a newbie when is comes to CSS.

humbleCSS
humbleCSS's picture
User offline. Last seen 1 year 23 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2009-03-12
Posts: 30
Points: 2

This is not really a css

This is not really a css thing, more like javascript. Never fear though it can be done through css but it's a bit complex. Are you familiar with sprites, anchors, and hovers in css?

I am back Smile

Tyssen
Tyssen's picture
User offline. Last seen 1 day 6 hours ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8123
Points: 1302

Try something like this

<ul>
	<li><a href="#">Text<span><img src="" alt="" /></span></a></li>
</ul>
 
li { position: relative }
li span { 
position: absolute;
right: -100px; top: 0;
display: none
}
li a:hover span { display: block }

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

jon19870
jon19870's picture
User offline. Last seen 22 weeks 6 days ago. Offline
rank Enthusiast
Enthusiast
Timezone: GMT+1
Joined: 2007-01-05
Posts: 195
Points: 194

I like these type of

I like these type of non-javascript solutions to common javascript usage. neat Smile