Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attempting to Use Dual Backgrounds with CSS

Status
Not open for further replies.

Nightblade

Programmer
Apr 19, 2005
2
0
0
US
Could anyone assist me in this tiny problem... I'm attempting to use two background bitmaps, where bg1.bmp is fixed on the top going horizontally across the page, while bg2.bmp is always fixed on the bottom and scrolls horizontally as well. the css code i have is as follows.

body{
background-image: url(bg1.bmp),url(bg2.bmp);
background-repeat: repeat-x,repeat-x;
background-position: top,bottom;
}
 
More than one backgrounds are part of the CSS3 and no current browser supports that. If you wouldn't like to wait until browsers catch up, I suggest you try it with divs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top