Jump to content

fixed background


ballouta

Recommended Posts

body {

background-image: url('image.gif');
background-repeat: no-repeat;

}

 

That should do it :D

 

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.

Link to comment
https://forums.phpfreaks.com/topic/93326-fixed-background/#findComment-478031
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.