Hi all, I am trying to create a expandable banner with css/js/flash. At the moment i am able to create a dropdown expandable banner, but I want it to go upwards. http://www.bldd.nl/bannerTest/ So onrollover the div will expand upwards, how can i do this? regards
found a solution by using the clip attribute css clip: rect(240px auto 300px auto); http://www.bldd.nl/bannerTest/index2.php Latest tests: http://www.bldd.nl/bannerTest/index3.php
doesn't do a thing in firefox.... you probably want to use negative margins. .off { width: 500px; height: 50px; } .on { margin-top: -200px; height: 250px; } you may need to add some positioning element (relative or absolute) along with possible z-index issues.
the clip property doesn't work unless the element has been positioned absolutely. but dont use the clip property, go like this: #Element { width: 400px; height: 50px; display: block; } #Element:hover { height: 100px; position: relative; top: -25px; } make sure #Element is an A element, or else the :hover won't work in IE6