Print Page | Close Window

Non-scrolling background

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=1844
Printed Date: 28 March 2026 at 7:36am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Non-scrolling background
Posted By: eagle00789
Subject: Non-scrolling background
Date Posted: 16 April 2003 at 1:45am

how can i create a non-scrolling background

greetings chris



-------------
Using forum at http://www.gravenrode.nl/forum/forum - Gravenrode and http://www.gravenrode.nl/forum/test_forum - here and http://217.121.39.22/forum/test_forum - here



Replies:
Posted By: KCWebMonkey
Date Posted: 16 April 2003 at 7:23am

with CSS:

<style type="text/css">
body {
background-image: url("your_image.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
}
</style>



Posted By: eagle00789
Date Posted: 16 April 2003 at 8:20am

thx. it works



-------------
Using forum at http://www.gravenrode.nl/forum/forum - Gravenrode and http://www.gravenrode.nl/forum/test_forum - here and http://217.121.39.22/forum/test_forum - here


Posted By: dj air
Date Posted: 17 April 2003 at 7:36am

you can also add this to the body

bgproperties=Fixed

 



Posted By: KCWebMonkey
Date Posted: 17 April 2003 at 11:25am
yes, but if you are adding this to all pages on a site, it would be much easier to just add this to the .css file...


Posted By: dj air
Date Posted: 17 April 2003 at 11:42am
true .... But this is another way if you dont want to have a css style web site ..... Better for a wider range of users


Posted By: zamalek
Date Posted: 23 April 2003 at 1:25am
Originally posted by KCWebMonkey KCWebMonkey wrote:

with CSS:

<style type="text/css">
body {
background-image: url("your_image.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
}
</style>

in what file I need to place that code ? can I place it in the ( default_style ) file

thanks in advance

 



Posted By: KCWebMonkey
Date Posted: 23 April 2003 at 7:09am

well, you can place that exact code in the <head></head> section of the page.

or you can just put

body {
background-image: url("your_image.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
}

inside a .css file and link to it through your web page.



Posted By: Dergal
Date Posted: 23 April 2003 at 7:50pm

 

"true .... But this is another way if you dont want to have a css style web site ..... Better for a wider range of users"

Not really, neither seem popular with non-IE users, I think that CSS has a wider following than the non-css method, but there are so many browser/system combinations... if its important, use both!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net