CSS/DIV HEIGHT

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
ptysell
Forum Commoner
Posts: 34
Joined: Tue Dec 02, 2003 9:27 pm
Location: USC

CSS/DIV HEIGHT

Post 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.
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

Why must you do this?

There's gotta be another way to achieve the look you want.
ptysell
Forum Commoner
Posts: 34
Joined: Tue Dec 02, 2003 9:27 pm
Location: USC

Post 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.
ptysell
Forum Commoner
Posts: 34
Joined: Tue Dec 02, 2003 9:27 pm
Location: USC

Post by ptysell »

solved it, i just used a bottom padding of 100%
ptysell
Forum Commoner
Posts: 34
Joined: Tue Dec 02, 2003 9:27 pm
Location: USC

Post by ptysell »

ok nm i didnt solve it
Post Reply