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
At the moment somthing similair to what you want is possible. The way to it to declare the hover style as: [b]#myDiv1:hover #myDiv2 { ... }[/b] That one will change the style of myDiv2 when is the child of the element you hover over, in this case myDiv1. You can alse change it so it affects the element following the one hovered over (#myDiv1:hover + #myDiv2) or if it is the direct child ofthe element (#myDiv1:hover > #myDiv2). So the conclusion is that you can do what you want as long as you can express the relationship between the two elements in CSS. But support for this is a bit sketchy in most browsers... Check out [url=http://www.meyerweb.com/eric/css/edge/menus/demo.html]Meyer's example[/url] to see how it might be done. _________________________ "There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero" [This message has been edited by Veneficuz (edited 09-06-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »