ballouta Posted February 27, 2008 Share Posted February 27, 2008 Hello How can I make a fixed background, when you scroll down the background stays fixed, it is nice. i saw it in this site: http://www.amorcollections.nl/productsshawlswol.htm thank you Quote Link to comment https://forums.phpfreaks.com/topic/93326-fixed-background/ Share on other sites More sharing options...
PHP Monkeh Posted February 27, 2008 Share Posted February 27, 2008 body { background-image: url('image.gif'); background-repeat: no-repeat; } That should do it Quote Link to comment https://forums.phpfreaks.com/topic/93326-fixed-background/#findComment-478029 Share on other sites More sharing options...
obsidian Posted February 27, 2008 Share Posted February 27, 2008 body { background-image: url('image.gif'); background-repeat: no-repeat; } That should do it Actually, no. That only tells the background not to repeat. You actually have to tell it to be fixed: background: url('image.jpg') no-repeat fixed; This is assigning the background-image, background-repeat and background-attachment attributes in shorthand. Quote Link to comment https://forums.phpfreaks.com/topic/93326-fixed-background/#findComment-478031 Share on other sites More sharing options...
ballouta Posted February 27, 2008 Author Share Posted February 27, 2008 Many Thanks for you all. It is working.. Topic Solved Quote Link to comment https://forums.phpfreaks.com/topic/93326-fixed-background/#findComment-478039 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.