Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Hover image over text
Old 10-24-2007, 02:35 PM Hover image over text
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
How can I hover a different image over each text in <ul>?

here is an example of what I'm talking about: http://www.idprojections.com/portfolio.php
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
 
Register now for full access!
Old 10-24-2007, 02:44 PM Re: Hover image over text
Defies a Status

Posts: 3,420
Trades: 0
I've taken a look at their CSS and they assigned each link a class of "screen". Here is the CSS they used:

Quote:
a.screen, a.screen:visited {
color:#ff7e00;
text-decoration: none;
position:relative;
z-index:1;
}

a.screen:visited {
color:#c00;
}
a.screen b {
position:absolute;
visibility:hidden; /* hide the image */
width:200px; /* give it a width */
height:0; /* no height to solve an Opera bug that
makes it selectable when hidden */
border:1px solid #000; /* add a border */
left:100px; /* position:the image */
top:-150px;
}
a.screen:hover {
color:#C8C22B;
text-decoration: underline overline;
border:0; /* needed for this to work in IE */
z-index:1000;
}
a.screen:hover b {
visibility:visible; /* make the image visible */
height:150px; /* now give it a height */
cursorointer; /* for IE */
z-index:500;
}
a.screen:hover b img {
border:0; /* remove the link border */
}
And the HTML:

Quote:
<li><a href="http://www.3dstructural.com/" title="3D Structural Solutions" class="screen">3D Structural Solutions<b><img src="img/port/3d.jpg" alt="3D Structural Solutions Screenshot" title="3D Structural Solutions Screenshot" /></b></a></li>
Looks like the image is hidden, until they hover over it and it becomes visible. I did something similar with my drop down menu on my hosting site.

Hope this helps,
Whym
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-24-2007, 03:39 PM Re: Hover image over text
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
you have a smiley in the code
can you retype that part again?
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE

Last edited by MattCoops; 10-24-2007 at 03:48 PM..
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-24-2007, 03:50 PM Re: Hover image over text
Defies a Status

Posts: 3,420
Trades: 0
Sorry that was just what came out when I copied and pasted the code.

I'll repaste the CSS:

Quote:
a.screen, a.screen:visited {
color:#ff7e00;
text-decoration: none;
position:relative;
z-index:1;
}

a.screen:visited {
color:#c00;
}
a.screen b {
position:absolute;
visibility:hidden; /* hide the image */
width:200px; /* give it a width */
height:0; /* no height to solve an Opera bug that
makes it selectable when hidden */
border:1px solid #000; /* add a border */
left:100px; /* position:the image */
top:-150px;
}
a.screen:hover {
color:#C8C22B;
text-decoration: underline overline;
border:0; /* needed for this to work in IE */
z-index:1000;
}
a.screen:hover b {
visibility:visible; /* make the image visible */
height:150px; /* now give it a height */
cursor: pointer; /* for IE */
z-index:500;
}
a.screen:hover b img {
border:0; /* remove the link border */
}
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-24-2007, 04:20 PM Re: Hover image over text
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
thank you

all fixed now
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Reply     « Reply to Hover image over text
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39005 seconds with 12 queries