I'm trying to ensure the comments div is the same height as the image above so they can be aligned side by side. Below is my current code:
<div class="main_image_wrapper">
<img class="main_image" src="*dynamic generated image*" style="margin:0 auto">
<div class="comments_div">
<h3>Comments</h3>
<!--Code for comments-->
</div>
</div>
Do I need to use javascript to achieve this, or is there a CSS solution? Also, how can I position the comments directly below the image, considering that the image width may vary?