...

View Full Version : CSS expand box with image



calmchess
04-08-2009, 05:55 PM
Is it possible to set a background image and have the div box expand to the size of the image? if so how do i code the class to do so?

JonisJon
04-08-2009, 06:18 PM
If you set the div to width 100% the background image should expand with the div.

calmchess
04-08-2009, 06:46 PM
I was hoping for the image to cause the box to expand.

Excavator
04-08-2009, 07:17 PM
Is it possible to set a background image and have the div box expand to the size of the image? if so how do i code the class to do so?

No. A bg img can't influence the div you put it on, doesn't work that way.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum