View Single Post
  #3 (permalink)  
Old Sep 29th, 2007, 19:50
Jack Franklin's Avatar
Jack Franklin Jack Franklin is offline
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,301
Blog Entries: 8
Thanks: 10
Thanked 5 Times in 5 Posts
Re: using background images to fill div's

I'm presuming your problem is that the image is not appearing?

I think you have missed the background-position and background-repeat properties!

Code: Select all
#banner {
background-image: url(....banner.gif);
background-repeat: no-repeat;
background-position: top;
width: the width of your image or more;
}
You do need to also add a width to your div, it needs to be the same width as the div or greater, and the same with the height.

Good luck!

HtH!

Jack