The point is, there is a block with
position: fixed
and there is another under it
div
here's how to do it so that when a block with
position: fixed
visible, the bottom went down to the height of this block?
Here is what I tried to do.
$(".helpMenuWhite").click(function(){ if($(".helpMenuWhite").css("position") == "fixed") { $(".test").css("margin-top","100px"); }else{ $(".test").css("display","none"); } });