Sowmya Sowmya - 1 year ago 59
HTML Question

Filling the available space with display:table-cell

Is it possible to avail the second div to occupy the available space of the parent div without specifying manual width?

Here is the Fiddle for the tried demo.

.right_cnt {
display: table-cell;

NOTE: I need yellow box to occupy the available right space.

Answer Source

Set display:table; width: 100%; on the parent element, remove float: left from the sibling.