Thread: div bg
View Single Post
  #6 (permalink)  
Old Jun 27th, 2006, 20:50
moojoo's Avatar
moojoo moojoo is offline
Moderator
Join Date: Aug 2005
Location: Texas
Posts: 2,020
Blog Entries: 1
Thanks: 0
Thanked 33 Times in 33 Posts
Re: div bg

Best method:

background: #color url(../images/foo.jpg) top/center right/left repeat-x/y etc..) Additionally you can use px values to place the image too. e.g. for say a single image rollover effect.

#foo a {
background: #color url(../images/foo.jpg) 0px 0px no-repeat)
}

#foo a:hover {
background: #color url(../images/foo.jpg) 0px -50px no-repeat)
}

Last edited by moojoo; Jun 28th, 2006 at 12:44.
Reply With Quote