The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery Div height not working on page load

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #35514

    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: (Divs are under Challenge -> Guidance and Criteria.

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


    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.