This code should set an elements height; however no style gets added. Am I missing something obvious?
function setGround() { 
    document.getElementById('content').style.height = '40px';
} 
document.onload = setGround; 
The HTML is quite basic:
<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Template</title>
    <link rel="stylesheet" type="text/css" href="css/default.css"/>
    <link rel="stylesheet" type="text/css" href="css/orange.css"/>
    <script type="text/javascript" src="javascript/detect-css.js"></script>
</head>
<body>
    <header>
        <div id="logo"></div>
    </header>
    <section id="sidebar"><p>sf </p>
    </section>
    <section id="content"><p>sf </p>
    </section>
</body>
</html>
Thank you for your help!
 
     
     
     
     
     
    
` tag. Then you can just do `setGround()`.
– Aug 06 '12 at 22:22