April 4th, 2013, 07:34 PM
April 5th, 2013, 04:41 AM
Have you tried:
<article id="article1">Article contents</article>
article1.style.height = "400px";
April 5th, 2013, 02: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";