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
Image Rollover in CSS?
Old 11-22-2009, 04:42 PM Image Rollover in CSS?
Junior Talker

Posts: 1
Name: Cory
Trades: 0
Hello,
My first attempt at image rollovers in CSS is unusuccessful. Any help would be appreciated....

----Html------
<code>
<div class="col-4 maxheight">
<a href="../strategy/strategy.html" style="text-decoration: none">
<div class="box4 maxheight">
<div class="indent">
<span style="color: #C0C0C0">Entry Level / Student</span>
<h4 style="color: #C0C0C0">Strategy</h4><span class="style7"></span>
</div>
</div></a>
</div>
</code>

----CSS-----
<code>
.boxes{ width:820px; overflow:hidden;}
.boxes .col-4{ width:205px !important; margin-left:1px;}
.box4{ background:url("../images/box4-tailgrey.gif") top repeat-x #999999; color:#999999;}
.boxes .indent{ padding:25px 15px 31px 24px; position:relative;}
.box4 a{ color:#ff9967;}
.box4 a:hover{ background:url("../images/box4-tail.gif") top repeat-x #c23605; color:#ff9967;}
</code>

Thanks in advance
__________________

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


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


Please login or register to view this content. Registration is FREE
coryg91 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-22-2009, 05:23 PM Re: Image Rollover in CSS?
WebTech's Avatar
Average Talker

Posts: 16
Name: Daniel Ynacay
Location: Stony Point, North Carolina
Trades: 0
check your images. looks like it's pointing to your hard drive instead of a directory on your server
__________________
You can't learn anything if you "think" you already know it all.
WebTech is offline
Reply With Quote
View Public Profile
 
Old 11-24-2009, 06:24 AM Re: Image Rollover in CSS?
Super Talker

Posts: 139
Name: John Davis
Trades: 0
Provide us your files hierarchy. Probably you've missed files relation
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 11-25-2009, 12:45 AM Re: Image Rollover in CSS?
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
This is a little messy.
You have .box4 a:hover, which is looking for an anchor 'inside' something with the class of .box4 but there is no anchor in there?

To target that anchor you'd need to to something like
.col-4 a:link
and so on...
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Reply     « Reply to Image Rollover in CSS?
 

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.12810 seconds with 12 queries