Question

Locked

CSS/HTML: How can I make a div grow with content

By nigel ·
I am building a EKM retail Website for which I am trying hard to keep with CSS for page layout rather than loads of html tables.

The Shopping Cart page has to use code provided by the site builders, which is contained in a table.

The table needs to be contained in a div so as to provide borders/background etc.

The problem is that without the cart table the div grows down the page to contain it's contents but when the cart table is inside the div will not grow and the table pops out the bottom of the div.

I have tried 'clear: both' to no avail.

I would appreciate any suggestions as I am at the point of having to resort to using a huge table instead of the div.

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums