zkolya,
$("#btn4").click(function(){
var parentDivId = $(this).parent().attr('id');
var widthparent=$("#"+parentDivId).width();
var heightparent=$("#"+parentDivId).height();
var c_t=$("table");
var posit=" ";
c_t.each(function(indx, el){
var position = $(this).position();
posit+="#t"+(indx+1)+"{left: " + (100*position.left/widthparent) + "%, top: " + (100*position.top/heightparent)+"%}"
});
alert(posit);
});