PDA

View Full Version : CSS: Putting Classes/IDs inside others?



DarkBlood
July 2nd, 2009, 10:07
Just wondering if it is possible or will ever be possible to do something as such:


A:Hover.nav1 {
visibility:inherit.className1;
visibility:hidden.className2;
visibility:hidden.className3;
visibility:hidden.className4;
}

A:Hover.nav2 {
visibility:hidden.className1;
visibility:inherit.className2;
visibility:hidden.className3;
visibility:hidden.className4;
}

Would be nice for a CSS-only (No JavaScript) dropdown menu implementation.

MissTheresa
August 24th, 2009, 13:45
I don't know about whether it will be possible or not but I do not believe it is possible now. CSS is mainly for skinning your site, not for the actual physical reaction, just for the pretty. Although there are some exceptions I believe.