April 4th, 2013, 08:34 PM
April 5th, 2013, 05:41 AM
Have you tried:
<article id="article1">Article contents</article>
article1.style.height = "400px";
April 5th, 2013, 03:08 PM
Welcome to DevShed Forums, loofemmaps.
Would you mind explaining what you're trying to achieve? Do you want equal height columns or something?
Element IDs should not be treated as global variables. (Regardless of whether some browsers allow it or not.) You mean this:
Originally Posted by Edge360
document.getElementById('article1').style.height = "400px";