Page 1 of 1

CSS/DIV HEIGHT

Posted: Tue Dec 30, 2003 10:12 pm
by ptysell
I have this code:

code........
<div>
<div>
whatever
</div>
<div>
whatever 2
</div>
<div>
whatever 3
</div>
</div>

now these are floated. When the content of the 2nd div(whatever 2) extends past the content of the first two, only that DIV expands. I need the DIVs to be all the same height based on the content of the "whatever 2" DIV.

i hope this makes since

i tried to use height: 100%; but that did not work.

Posted: Tue Dec 30, 2003 10:17 pm
by microthick
Why must you do this?

There's gotta be another way to achieve the look you want.

Posted: Tue Dec 30, 2003 10:42 pm
by ptysell
the content is dynamic.
i dont want to use tables.
if i make the main container have the bg then i can have a spacer
if i use margin/border code, it throws off the top alignment for some reason.

Posted: Tue Dec 30, 2003 11:09 pm
by ptysell
solved it, i just used a bottom padding of 100%

Posted: Tue Dec 30, 2003 11:16 pm
by ptysell
ok nm i didnt solve it