Initially, I made a modification to the #add click function in your jQuery script by adding CSS to the u286 id and then removing it later.
$('#add').click(function () {
if ($('#sliding-form').is(":hidden")) {
$('#sliding-form').slideDown('slow');
$('#u286').css({
'border':'1px solid #000',
'border-bottom-color':'white'
});
} else {
$('#sliding-form').slideUp('slow');
$('#u286').removeAttr('style');
}
});
UPDATE: In your CSS file, I made some adjustments. I positioned the #bottom-header
div on top of the #sliding-form
div to create a white gap. Here are the changes I implemented:
Added position: relative;
to the .container
class,
Added
#bottom-header { position: absolute; z-index:10;}
,
Added background:#fff;
to #u286
,
Removed .mouseOver {background:#fff;}
as it had no effect,
Changed top: 30px;
to top: 26px;
in #sliding-form
.
I hope these modifications align better with your preferences!
View updated jsFiddle
Refer to this helpful StackOverflow question/answer about overlays