 <p>This is probably a stupid solution because I'm terrible and lazy, but here is my crazy work-around:</p> <p>In the head:</p> <pre><code>&lt;script type="text/javascript"&gt; function fixmyheight(h) { document.getElementById('fixme').style.height = h + "px"; } &lt;/script&gt; </code></pre> <p>And then in the body:</p> <pre><code>&lt;ul id="fixme"&gt; &lt;li&gt;Item 1&lt;/li&gt; &lt;li&gt;Item 2&lt;/li&gt; &lt;li&gt;Item 3&lt;/li&gt; &lt;li&gt;Item 4&lt;/li&gt; &lt;li&gt;Item 5&lt;/li&gt; &lt;li&gt;Item 6&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Sorry, I screwed that up at first. Fixed now.</p>