Hello everyone,

I'd like to know if there is a way to set a div height to expand to the content if it (the content) is generated by a php script that searches a CSV file for a number and repeat a certain html template this number of time.

Ex: CSV find number 4, then it repeat "template.html" 4 times. So if template is 450px high, then the containing div will expand to 1800px.

I tried this, but i'm sure it's not the way to do it :

#containing_div { width:750px; height:auto }
#template_div { width:100%; height:450px }