4 replies [Last post]
DiarYofaMadmaN
Offline
Regular
Last seen: 17 years 45 weeks ago
Timezone: GMT-5
Joined: 2004-03-18
Posts: 27
Points: 0

I'm havinga hard time with getting my container div height to get larger when text is added inside of the nested div... How do i do this?

Rich

mkjoker
Offline
Regular
Dresden
Last seen: 17 years 21 weeks ago
Dresden
Timezone: GMT+1
Joined: 2004-09-01
Posts: 40
Points: 0

div-height

Hello DiarYofaMadmaN,

I tried this a long time as well. I think there are only two possibilities to handle a content bigger than a div. Either you attach scrollbars overflow:auto; which doesnt resize the div but makes the conent accessable or you have a script that can change the height of the div dynamically.

You can just not define the div's height as well.

mkjoker

DiarYofaMadmaN
Offline
Regular
Last seen: 17 years 45 weeks ago
Timezone: GMT-5
Joined: 2004-03-18
Posts: 27
Points: 0

Re: div-height

mkjoker wrote:
Hello DiarYofaMadmaN,

I tried this a long time as well. I think there are only two possibilities to handle a content bigger than a div. Either you attach scrollbars overflow:auto; which doesnt resize the div but makes the conent accessable or you have a script that can change the height of the div dynamically.

You can just not define the div's height as well.

mkjoker

Well i didn't define the div's hight at all....

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 7 years 48 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

have a div's hight get longer...

can you show us an example or code?

DiarYofaMadmaN
Offline
Regular
Last seen: 17 years 45 weeks ago
Timezone: GMT-5
Joined: 2004-03-18
Posts: 27
Points: 0

have a div's hight get longer...

wolfcry911 wrote:
can you show us an example or code?

I figured it out: display: table;