CSS Div Hover Shadow - Help ! Help ! Help ! Help !
Hey, i think the title must have given a hint on what, i am trying to achieve. Basically what i am trying to do is get DIV shadow on mouse over although very simple, i'm not so good at css i do know to get a shadow you use moz-box-shadow but how do i get the shadow only on mouse over....
Megan posted this at 18:03 — 16th August 2010.
She has: 11,421 posts
Joined: Jun 1999
Try this:
div:hover {
-moz-box-shadow: 2px;
-webkit-box-shadow: 2px;
}
I have no idea if those values are in the right ballpark or how well hover on elements other than links is supported. Play around and see.... also search around for support of :hover on other elements. Quirksmode.org might have some good info. They usually have a lot of good support tables.
Megan
Connect with us on Facebook!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.