All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed