Forums

Get help. Give help. A Web Design and Development Community.

Set on element width and height

  • # July 1, 2013 at 11:07 am

    Sorry, for dumb question but why doesn’t work height? :D
    http://codepen.io/anon/pen/LzgKq

    # July 1, 2013 at 5:37 pm

    This reply has been reported for inappropriate content.

    clientHeight is read-only, try

    document.getElementById(‘block’).style.height = h + ‘px’;

    # July 2, 2013 at 3:31 am

    thx :)

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

You must be logged in to reply to this topic.

We have a pretty good* newsletter.