Solved

DIV auto height expansion

Posted on 2010-11-24
4
280 Views
Last Modified: 2012-06-22
I seems my brain is wired not to handle automatic expansions of DIVs. What should I keep in mind when building web UIs to alway ensure that my DIVs expand?
0
Comment
Question by:Richard Lee
  • 2
4 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34206314
If you mean expanding vertically to match the content then you basically just need to make sure you give them a:

    overflow: auto;
0
 
LVL 5

Expert Comment

by:buraksarica
ID: 34206342
Some browsers have issues rendering container divs properly, because of measuring bugs. Can you give an example?

For most scenarios, placing an empty at the end of container div with style="clear:both" do the magic. For example :

<div>
....
....
..some stuff..
....

<div style="clear:both;"></div>
</div>
0
 
LVL 18

Author Comment

by:Richard Lee
ID: 34206345
Why on earth can't I remember this :)!?
0
 
LVL 18

Author Closing Comment

by:Richard Lee
ID: 34206360
Overflow auto did the trick.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question