...

View Full Version : Why does the background image disappear when float property is used



forgottenglory
12-09-2009, 01:51 PM
I have created a container div tag to hold 5 columns which I want to be side by side to each other. The div tag holds a background image of 600px wide and 1px high which is set to repeat y so as to create a nice background behind the columns.

The problem is that when I set all the columns to float the background image disappears behind the columns.

Why is this happening and how can I get the background image to display behind the columns?

Thanks

abduraooft
12-09-2009, 02:20 PM
You need to clear your floats! See www.quirksmode.org/css/clearing.html

hdewantara
12-14-2009, 06:32 AM
May I see this HTML script page of yours.
Regards,



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum