Attached a Header with a (kinda) close button (in red) moc-up. When I click on the close button (the area that overlaps with a header) – nothing happens. Can you please advice on the correct solution regarding the subject?
HTML:
<div id="my_body" style="background:rgba(0, 0, 0, 0.6);padding:10px;">
<div id="cls_btn" style="position:absolute;left:0px;top:0px;height:50px;width:50px;background-color:red;"> </div>
<div id="my_header" style="position:relative;padding:14px 26px 26px"> </div>
<div id="pic_area" style="border:2px solid #b3b3b3;margin-top:10px">
<img id="pic" src="http://never.mind.which.pic.com" >
</div>
</div>
JS:
$("#cls_btn").bind("click", function() {
alert("clicked!");
return true;
});
JSFiddle: http://jsfiddle.net/JuGx9/
Thanks!
Your ‘my_header’ cover it.
change the rows to: