Good day, I do a list, I need to get the height of the next attachment to rationalize the parent block of the list, this is how the structure looks like (there are many i_n_block blocks, all absolutes, displayed by z-index)
<div class="wapper_important_news clearfix"> <div class="i_n_static fs36 regular">ВАЖНО!</div> <div data-rel="n" class="i_n_block clearfix"> <div class="left"> <div class="i_n_date fs13 light">DATE</div> </div> <div class="right"> <div class="table-cell"> <a href="#href" class="underline"> <div class="i_n_title fs16 bold">TEXT_HREF</div> </a> <div class="i_n_desc fs16 light">TEXT</div> </div> </div> </div> <div class="in-control"> <div class="left"></div> <div class="right"></div> </div> </div> and here is what js looks like trying to resize:
var a = $(".i_n_block:visible"); $(".wapper_important_news").height(a.next().find(".right").height()); but when executing height () it produces 100px, on every block (there is no such height anywhere at all). if you take the size of the current block (without next / prev), then everything works fine, but I need to change the height during the animation. How best to solve this problem and why, in fact, can not get the height of neighboring elements?