954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

adjust height of element automatically

Hii...
I want that height of elements should be adjusted automatically at run time based on the size of element..
For that I have used Height : auto;
But it is not working...
So which property should I use?

riya_developer
Newbie Poster
15 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

I assume you are using height in your DIV,

don't mention height. It will automatically adjust according to the contents.

But hard to suggest without seeing the css

carrieathomer
Light Poster
37 posts since Oct 2011
Reputation Points: 11
Solved Threads: 8
 

Ya I have used
and in css .addWidget{ height:auto;}
And I also tried as u said...but no result...

riya_developer
Newbie Poster
15 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Try add "overflow:hidden" to its wrapper container

lps
Junior Poster
117 posts since Jul 2011
Reputation Points: 13
Solved Threads: 22
 

Thanx....It works....

riya_developer
Newbie Poster
15 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You