How to make the same as jsFiddle, but the difference is the green box should slide down to disappear (and slide up to appear when you click the click here
link in the example one more time).
The two strings
/*position:absolute;*/
/*bottom:0px;*/
which are commented in the css part of jsFiddle doesn't work well if uncomment because it really starts to slide down, but the browser scroll bar disappers - not good.
Edited:
Add a
<div>
with anid
sliderWrapper and give it100%
width as given below.Keep following css rules for
#slider
Replace following line with
$('#slider').slideToggle(500)
SEE DEMO
Edited your jsFiddle! Used jquery.slideToggle(); and some Css to get the right slide direction!
jsFiddle