Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-05-2005, 08:34 PM   PM User | #1
kraftomatic
Regular Coder

 
Join Date: Jul 2003
Posts: 600
Thanks: 17
Thanked 0 Times in 0 Posts
kraftomatic is an unknown quantity at this point
Controlling the Hover State of Another Element

Hey All,

I've run into a situation where I need to use some CSS trickery. I'm not sure how to do it however.

I have a rectangular image that has a 2px wide border around it. The image is roughly 110px by 65 px. The border is black. When you rollover the image, the border turns another color (orange in this case). This is done by just having padding around the image and changing the background color of it when rolling over the image.

The tricky part however is that I have a separate div below it which also needs to control the color of the image when rolled over (it's a rectangular box with text in it). So on rollover, this text box needs to change from black to orange (similar to how the image does); and also change the image above it's color to orange.

Does that make sense? Any suggestions on how I would go about doing this?

Thanks.
kraftomatic is offline   Reply With Quote
Old 07-05-2005, 08:46 PM   PM User | #2
kraftomatic
Regular Coder

 
Join Date: Jul 2003
Posts: 600
Thanks: 17
Thanked 0 Times in 0 Posts
kraftomatic is an unknown quantity at this point
Figured it out .. thanks though all ..
kraftomatic is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:02 AM.


Advertisement
Log in to turn off these ads.