Grow your CSS skills. Land your dream job.

document ready

  • # July 2, 2013 at 3:44 am

    Hello,
    why doesn’t work?

    http://codepen.io/anon/pen/jFpgr

    # July 2, 2013 at 4:11 am

    Close your code with this }); rather than } and select jQuery from the JS option menu.

    For this bit of JS code you really don’t need jQuery or the document ready declaration.

    # July 2, 2013 at 4:48 am

    Then how to make ? That when everything okey I mean ready then giving the height to the block?

    # July 2, 2013 at 5:37 am

    Sorry, just meant your code snippet would work within CodePen without jQuery or document ready. If you’re going to be using other jQuery code on your page then uses that.

    For pure JavaScript there are various methods of checking everything is loaded which I’m not too familiar with as I always end up using jQuery anyway.

    # July 2, 2013 at 6:34 am

    Am thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

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