View Full Version : background image

07-15-2005, 10:29 AM
help!!! i have a really simple question! :)

i need a script that makes my picture on the background of my homepage appear just one time and not twice or even trice!

i hope someone understands what i need and is able to help me out!
thanks a lot! :)

07-15-2005, 03:25 PM
If you are using style to set the background image, set it to no-repeat:

<style type="text/css">
body {
background:url('some.jpg') no-repeat;

If you are not using style, you should. Style belongs in the head of the document, somewhere between the <head> and </head> tags.

07-17-2005, 11:14 AM
thank u very much!! :)

but i still got a question: why does my chosen image doenst fill out the whole background while using this script?

07-17-2005, 01:35 PM
Again, it is not a script. It is css style. Um, what part of no-repeat didn't you understand? Your image is of a certain size, the page is larger. Read this recent thread, it will explain things: