Grow your CSS skills. Land your dream job.

Jquery Div height not working on page load

  • # December 6, 2011 at 10:01 pm

    Hi, I’m new to posting on forums so please let me know if I’ve missed anything. I’ve used Jquery to apply height to certain Divs. The height is basically set to 100% – 350px using this code:

    It does not register on page load, but does register as soon as you change the browser’s window size. I have not found any conflict in the CSS. The Div is part of a Jquery Div-swap, and I hope it’s not down to a conflict in the js.

    Link: http://www.rockomole.com/geebiz_test/index (Divs are under Challenge -> Guidance and Criteria.

    Let me know if you want me to post the CSS. Thanks in advance!

    # December 6, 2011 at 11:19 pm

    SOLVED: this code only calls setSizes when resized. It can be called explicitly by adding

    $(document).ready( function() { setSizes(); });
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".