No replies
ferretneck
Offline
newbie
Last seen: 2 years 50 weeks ago
Joined: 2011-11-07
Posts: 1
Points: 2

Hi all

I have 2 divs which I want displaying side-by-side, both within another div which is 1000px wide.

The div on the left has a variable width which is dictated by its content.

The div on the right needs to shrink or expand depending on the width of the left div, so that both together always fill the 1000px parent. Similar to how table cells work.

Can someone help me achieve this using CSS please?

Thanks

Ben