Click to See Complete Forum and Search --> : Background image wont display?


mk2phil
05-25-2005, 10:53 AM
Hey guys, pretty new to CSS/HTML and I've got a problem with a background image I'm trying to display. Its the same image but with small variations depending on whereabouts you are within site. So I cant declare background-image in my container div cos it changes from page to page, so I've created an id for it:

#home_image {background-image: url(images/home.gif);background-repeat: no-repeat;background-position: top left;}

and then call it inside the code thus:

<div id="home_image">&nbsp;</div>

But its not working - the image doesn't display? Whats really annoying is that when I originally had it declared inside my container div, it worked fine..?

Any ideas/advice/abuse?

Thanks

BonRouge
05-25-2005, 11:38 AM
You'll need to give your div some dimensions - like height and width.

mk2phil
05-26-2005, 04:00 AM
Tried that and it worked! Thanks mate