Expand div when content overflows

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

+7
html css overflow expand
source share
2 answers

use style sheets and change

width:25px; 

to

  min-width:25px; 

and

  height:400px; 

to

  min-height:400px; 
+9
source share

at the risk of putting yourself in evil eyes from everyone else, just use the table, it will behave as you described.

+1
source share

All Articles