View Single Post
  #1 (permalink)  
Old Apr 25th, 2008, 11:15
R8515198 R8515198 is offline
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
CSS background image not using body

Good Morning,
I am trying to set a background image for my website.

When using the body tag it is fine as it adjusts to fit different screen sizes.
body {
background-image: url(bg_main.gif);
background-position: center top;
background-repeat: no-repeat;
margin: 0px;
}
But I dont want to use the body, I have tried using a div and it only goes as far as the content in it.
#bkgd {
background-image: url(bg_main.gif);
background-position: center top;
background-repeat: no-repeat;
margin: 0px;
}

Can anyone help

regards

Daniel
Reply With Quote