Tue, 2017-01-10 20:24
Hi everybody!
I'm trying to increase the size of a div from 200px to 400px but in an upward direction and not downward. Any idea how to do this using CSS? I've attached the CSS that I've written so far.
div1 {
border: 5px solid red;
position: absolute;
width: 100px;
height:200px;
left: 0;
top: 100px;
transition: height .5s;
}
div1:hover {
height:400px;
}
Wed, 2017-01-11 17:31
#1
Without my knowing the page, this is subject to failure
div1:hover { height:400px; top: -100px; }
You do know there is no element "div1", right?
The use of the position property puts you in the swamp, up to your ass in alligators, if you are not well versed in its use.
gary