DIV inside DIV overflow issue

M

Matt White

I have a DIV inside another DIV that is overflowing outside of its
bounds. Can you take a look at my code and let me know what I can do
to get the containing DIV to expand dynamically so the inner DIV will
fit no matter how much stuff is in it? Right now the height is fixed
but removing the height attribute doesn't fix the problem. I don't
just want to set the height larger either, I want the DIV to grow as
needed. Thanks!

The HTML
http://pastie.org/400086
The CSS (relevant stuff starting at line 1134)
http://pastie.org/400087
 
R

rf

Matt said:
I have a DIV inside another DIV that is overflowing outside of its
bounds. Can you take a look at my code and let me know what I can do
to get the containing DIV to expand dynamically so the inner DIV will
fit no matter how much stuff is in it? Right now the height is fixed
but removing the height attribute doesn't fix the problem. I don't
just want to set the height larger either, I want the DIV to grow as
needed. Thanks!

The HTML
http://pastie.org/400086
The CSS (relevant stuff starting at line 1134)
http://pastie.org/400087

Post the URL to the real page, not a picture of it.
 
M

Matt White

Post the URL to the real page, not a picture of it.

It's an internal app. If you save the two files (the css one is called
bds.css) you will see the error.
 
D

dorayme

Matt White said:
I have a DIV inside another DIV that is overflowing outside of its
bounds. Can you take a look at my code and let me know what I can do
to get the containing DIV to expand dynamically so the inner DIV will
fit no matter how much stuff is in it?

<div style="overflow: hidden">...<div>inner</div>...</div> might do you?

Are the inner divs floats?
 
J

John Hosking

You want us to study a stylesheet that has at least 1133 lines of
irrelevant code? When you *know* it's all irrelevant? And you can't be
bothered even to provide a real URL with valid code? Har!
It's an internal app. If you save the two files (the css one is called
bds.css) you will see the error.

And if we *don't* save the two files, maybe *you* will see the error.
 
C

Chaddy2222

I have a DIV inside another DIV that is overflowing outside of its
bounds. Can you take a look at my code and let me know what I can do
to get the containing DIV to expand dynamically so the inner DIV will
fit no matter how much stuff is in it? Right now the height is fixed
but removing the height attribute doesn't fix the problem. I don't
just want to set the height larger either, I want the DIV to grow as
needed. Thanks!

The HTMLhttp://pastie.org/400086
The CSS (relevant stuff starting at line 1134)http://pastie.org/400087

Well, for a start, provide a valid and full doctype. Validate your
code and don't use transitional or any flavor of XHTML (unless you
know what your doing and have a dam good reason for doing it).
Use HTML4.01 Strict.
Use only valid CSS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top