I am setting up pages to display the jpg's of comps that have been created and they all have a different height. Using javascript or jquery how would you auto adjust a div's height based on the height of the background image? The html would simply be laid out like so:
<body>
<div id="comp"></div>
</body>
I realize you can set this is CSS but I want it to be dynamic and not have to add the height every single time. Thanks for any ideas at all.