Sowmya Sowmya - 1 year ago 71
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download