Have a div which needs to be auto adjusted according to the content in it. How can I do this? Right now my content is coming out of the

just write “min-height: XXX;” And “overflow: hidden;” & you will be out of this problem Like this

min-height: 100px;
overflow: hidden;

 

 

if you haven’t gotten the answer yet, your “float:left;” is messing up what you want. In your HTML create a container below your closing tags that have floating applied. For this container, include this as your style:

 

#container {
clear:both;
}

 

 

or just do this

 

height:auto;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s