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"> </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?
ThanksYou'll need to give your div some dimensions - like height and width.Tried that and it worked! Thanks mate
#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"> </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?
ThanksYou'll need to give your div some dimensions - like height and width.Tried that and it worked! Thanks mate