OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
can #myDiv:hover be used to change attributes on a seperate div?
This page's ID:
11044
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ok what I would like to do is to rollover one div and have the border of another div change. example: <html> <head> <style type="text/css"> #myDiv1 { background:#cccccc; width:100px; height:100px; } #myDiv2 { background:#cccccc; width:100px; height:100px; } #myDiv1:hover { border:solid 4px #000000; } </style> </head> <body> <div id="myDiv1"></div> <br /> <div id="myDiv2"></div> </body> </html> In this example you'll find in IE it does nothing (can't have :hover on anything other than 'a' elements) - but in moz you'll see when you mouseover the top div it gets a black border - simple. But what I want to do is mouseover the top div and have the border appear on the bottom div. I'm sure it's possible somehow, although maybe it's a part of css2 or css3 that isn't supported as yet. Please help if you can. Thanks
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »