Sevir Posted September 25, 2006 Share Posted September 25, 2006 I want to change a div's hight on hover, how could I do that {or can I}?~Sevir Link to comment Share on other sites More sharing options...
S@m Posted September 25, 2006 Share Posted September 25, 2006 depending on what you want to do with hover, IE may not pick it up.however, you could try setting a different "line-height".a link {line-height:3px;}a:hover {line-height:30px;} Link to comment Share on other sites More sharing options...
skym Posted September 25, 2006 Share Posted September 25, 2006 I would think to try first something like:<div onmouseover="this.style.height='100px';">...</div> Link to comment Share on other sites More sharing options...
danm68 Posted September 26, 2006 Share Posted September 26, 2006 skym...but thats JS, isn't this CSS naa j/k. any answer to a problem is good, and heres mine :only FF will support :hover to anything non - links i think. so basically lets jsut make some code and ill 'talk' you through it. div{width:100px;height:300px;}div:hover{width:100px;height:500px;} once again that only works in FF AND Opera that i know of. and for some reason i think this might work as well, but for why you would have a div inside a link is beyond me.. a div{width:auto;height:50px;}a:hover div{width:auto;height:50px;} and im not sure that the bottom one will work. but w/e.inspiration: http://meyerweb.com/eric/css/edge/menus/demo.htmlhopefully that helps Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now