Jump to content

Archived

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

mbrost

Creating Background - that doesn't scroll

Recommended Posts

Hi there,

I am wondering if there is a snippet of code I can add to my php page so I can have a background image that does NOT scroll -- preferably that works with both Firefox and IE (and Netscape if such a thing exists)

Thanks guys/gals!

Mike

Share this post


Link to post
Share on other sites
[a href=\"http://www.w3schools.com/css/tryit.asp?filename=trycss_background-attachment\" target=\"_blank\"]http://www.w3schools.com/css/tryit.asp?fil...ound-attachment[/a]

example
[code]<style type="text/css">
body
{
background-image:
url('smiley.gif');
background-repeat:
no-repeat;
background-attachment:
fixed
}
</style>[/code]

Share this post


Link to post
Share on other sites

×

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.