DIV inside DIV overflow issue

3 views
Skip to first unread message

Matt White

unread,
Feb 25, 2009, 3:13:02 PM2/25/09
to Design the Web with CSS
Can anyone tell me how I can get the DIV on the left to fit inside so
that its text doesn't spill outside its containing DIV? I've messed
with the height and I can make it fit by keeping the height static and
making it high enough, but if I added in more text I'd rather not have
to go change the height of the DIV again. I'd like the DIV to just
expand dynamically no matter how much text is in it. The CSS of
interest is at line 1134, but I'm pasting the whole thing in case
there is something else in there I am missing that is causing the
problem. Thanks!

The HTML:
http://pastie.org/400086
The CSS:
http://pastie.org/400087

Richard Aday

unread,
Mar 3, 2009, 10:29:00 PM3/3/09
to css-d...@googlegroups.com
The reason that is happening is because you are making the inner div have position:absolute.

The only way you can fix this is by figuring out another way of doing what you're doing, without relying on position:absolute.
--
-Richard Aday

narhari gaikwad

unread,
Mar 4, 2009, 12:06:54 AM3/4/09
to css-d...@googlegroups.com
Hi,

Please Use overflow in css...

It's only you solution ..

:)


have  a nice day..



--
Narhari Gaikwad
Web Designer
Indore, INDIA
e-mail     : narh...@gmail.com
             : narha...@yahoo.com

Pablo March

unread,
Mar 3, 2009, 11:55:18 AM3/3/09
to Design the Web with CSS
Here I leave you a link to how to fix it:

http://www.quirksmode.org/css/clearing.html

I hope this will be useful...
Reply all
Reply to author
Forward
0 new messages