Disjointed rollover 1

Here's one:

The 'a's are 'position:relative;' and the spans are 'position:absolute;' to make them disjointed. The spans are 'display:none;' until the 'a' is hovered over, when they become 'display:block;'.

Here's another.

#disjointed1 {
width: 150px;
margin:20px auto 100px;
#disjointed1 li {
#disjointed1 a {
display: block;
color: #FFC;
#disjointed1 a img {
#disjointed1 a:hover {
color: #cff;
#disjointed1 a span {display: none;}
#disjointed1 a:hover span {
display: block;
position: absolute;
top: 60px;
left: 0;
width: 50px;
<div class="cfix">
<h1>Disjointed rollover 1</h1>
<p>Here's one:</p>

<ul id="disjointed1">
<li><a href="#n"><img src="wine.jpg" height="50" width="50" alt="wine" /><span>Wine</span></a></li>
<li><a href="#n"><img src="beer3.jpg" height="50" width="50" alt="beer" /><span>Beer</span></a></li>
<li><a href="#n"><img src="whisky.jpg" height="50" width="50" alt="whisky" /><span>Whisky</span></a></li>

<p>The 'a's are 'position:relative;' and the spans are 'position:absolute;' to make them disjointed. The spans are 'display:none;' until the 'a' is hovered over, when they become 'display:block;'.</p>

<p><a href="br.php?page=disjointed2">Here's another</a>.</p>


2006-04-22 Jennifer says :

hi umm i wanted to know if you can help me out.. cause I seen someone have something like that for his myspace. He had buttons like about me, music, movies, etc and when u roll the mouse over them text appeared.

2006-04-22 BonRouge says :

I'm sorry, Jennifer. What exactly is the question here? What do you not understand about the demo?

2006-09-01 Jenny says :

Hey! this code is great. I'm creating my friends web page and she saw this trick and wanted it for her gallery. The problem I'm having is that I cannot figure out how to position the display image. I have it so that you rollover a list of 50px X 50px images and to the right a large image appears. I cannot figure out how to align the large image. email me if you can: namedrops (at) gmail (dot) com

2006-09-02 BonRouge says :

Did you see this page? It sounds like you want something like that. Replace the contents of the span tags, i.e. the words, with images and position the span tags where you want in the CSS.
Also, did you see the 'Auto-gallery' page? That might be interesting for you (maybe).

2006-12-01 Ozga.co.uk says :

Here's a neat little trick. I really like this one (magnified by the fact that nothing but HTML and CSS is used). I might well use this in my forthcoming redesign.

Nice work.

2007-12-04 Andrew says :

Nice work! I had another way of doing the same thing, but this method doesn't lock up IE6 smile

2008-02-12 pk says :

This probably won't work across frames will it?
I'm looking for a text word in a leftFrame that when rollover will display an image in the centerFrame and the image will disappear when you rolloff the image...but can't seem to get it to work across frames. thanks...

Comment form

Please type the word 'wolf' here:

BB code available :

  • [b]...[/b] : bold
  • [it]...[/it] : italic
  • [q]...[/q] : quote
  • [c]...[/c] : code
  • [url=...]...[/url] : url