Left div fill the remaining horizontal space?

I have two divs

#leftand #right.

the right div has a fixed width.

How can I make the left div take up the remaining horizontal space?

+5
source share
2 answers

Float the div #rightinside #leftand leave it #leftwithout a float. Add the right padding in #leftwidth #rightif you want the space under the float to #rightbe empty.

#right, , #left. #left position: relative position: absolute #right #left ( #left).

+7

CSS: table-cell; ?

+1

All Articles