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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make the background image remain in place

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Want to find out how to stop my background image in a page from scrolling up/down with the page contents. Dreamweaver Ultradev 1
 
Go into the code view, find the BODY tag near the top.
It'll be something like <body background=&quot;picture.jpg&quot; bgcolor=&quot;white&quot; bgproperties=&quot;fixed&quot;>

Just add 'bgproperties=&quot;fixed&quot; as I've done above.

cheers
Sarah
User_timtom.jpg
WASN'T FIT ENOUGH FOR THE POLICE FORCE
 
Hello buzzvick!

You may also use CSS to fix bg image:
<html><head>
<style>
<!--
.styleName { background-attachment: fixed }
-->
</style>
</head>
<body ... class=&quot;styleName&quot;>
...
</body>
</html>

or even easier

<body ... style=&quot;background-attachment: fixed&quot;>

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top