<div id="field1"> .... <div id="component"> <div onclick="f1();"></div> <div style="position:relative;z-index:100;marign-bottom:-30px;" onclick="f2();">Х</div> </div> </div> <div id="field2"> .... </div>