DIV sizing

  User-CB94CED6-F3AA-42E7-8A286564F5DCBC14 10:20 03 Dec 2006
Locked

I have a DIV arrangement where I have a DIV in-line and widthed across the full parent DIV and inside this DIV I have two DIVs floated so they are side by side. I am using their parent to provide a background image (repeat-x) but when displayed in FFox (my default test browser) the DIV does not expand and just hangs around collapsed at the top (showing it's 2px borders).

Question is how do you get a DIV which is just used to give a background via an image say, to expand to the height of the image?

  harristweed 13:14 03 Dec 2006

I'm not a CSS wizard but I think...

As the two inner divs are floated they don't fill the containing div therefore it has no height.

You could:
1. Give the containing div a height or
2. nly float one of the inner divs

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Galaxy Note 8 vs iPhone X

Awful clip art from 1994 is being tweeted every hour by a bot

iPhone X vs Samsung Galaxy Note 8

Les meilleurs navigateurs internet 2017