tags:

views:

46

answers:

3

Probably a dumb question with a simple answer but I can't seem to find a solution

I want a parent div to stretch when the child table width goes beyond page width

example: http://www.internetmotors.lv/public/table_div_stretch.html

what would be the best css solution for this

+1  A: 

Setting the div to display: inline-block appears to do the trick.

Olly Hodgson
thanks for the quick response- this probably is not the most elegant solution- but for the mini site I'm building this will be good enough
Armand P
A: 

You can use display: table; as well. (DIV)
But how to make the thing working on IE7? Anyone?

Tig