Div horizontal aligning, one fixed, one adaptive
Posted
by Dorian McHensie
on Stack Overflow
See other posts from Stack Overflow
or by Dorian McHensie
Published on 2010-05-10T13:55:49Z
Indexed on
2010/05/10
14:04 UTC
Read the original article
Hit count: 207
Hello everyone. I would like to create a vertical splitted site structure using two divs:
My intention is to have d2 next to d1 in a horizontal align structure (same line). What i get is not this. In fact using that code, d2 does not take the remaining space, but collapses to the min width.
if I use
WRONG because d2 goes down and takes all the space (but both divs are in different lines).
HOW TO REACH MY OBJECTIVE? Is there a design pattern for this problem????
Thanks.
© Stack Overflow or respective owner