views:

44

answers:

2

I have div with height="400px" and width="25px".How to expand div when the content overflows?

A: 

At the risk of setting my self up for angry eyes from everyone else, just use a table, it will behave as you describe.

kasperjj
In my case , I can't use a table.
lam3r4370
+1  A: 

use stylesheets and change

 width:25px;

to

 min-width:25px;

AND

 height:400px;

to

 min-height:400px;
Salil
Perhaps changing "height" and "min-height" may be more suitable?
Cez
Thank you very much!
lam3r4370
@cez :- Thanks I edit my answer so that it expands vertically as well as horizontally.
Salil
I can't imagine why you'd want it to expand horizontally?
Django Reinhardt