Jump to content


Photo

Creating Background - that doesn't scroll


  • Please log in to reply
1 reply to this topic

#1 mbrost

mbrost
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 06 March 2006 - 01:44 AM

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

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 06 March 2006 - 01:56 AM

[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
<style type="text/css">
body 
{
background-image: 
url('smiley.gif');
background-repeat: 
no-repeat;
background-attachment: 
fixed
}
</style>

Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users