jQuery slideable divs with floated images how to make the right size.

Posted by Malachi on Stack Overflow See other posts from Stack Overflow or by Malachi
Published on 2010-06-09T01:33:47Z Indexed on 2010/06/09 1:42 UTC
Read the original article Hit count: 294

Filed under:

I am relatively new to using jQuery and I have a problem with creating some sliding tabs to work with images that are floated inside.

http://www.dur.ac.uk/malachi.soord/jin/

The above page demonstrates the problem I am facing - click on the about tab and you will notice that the image that is inside is floated to the right - which I know is not taken into consideration when jQuery is calculates the height of each div tab with:

$("#content > div").each (function() {
        $(this).css("height", $(this).height());
});

Is there a work around which could be used to allow me to take this into consideration? or is there a better way to achieve what I am trying to achieving.

© Stack Overflow or respective owner

Related posts about jQuery