I have a div with height = "400px" and width = "25px". How to expand div when content overflows?
use style sheets and change
width:25px;
to
min-width:25px;
and
height:400px;
min-height:400px;
at the risk of putting yourself in evil eyes from everyone else, just use the table, it will behave as you described.