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!![]()
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!![]()
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;
}
</style>
If you are not using style, you should. Style belongs in the head of the document, somewhere between the <head> and </head> tags.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
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?
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:
http://www.dynamicdrive.com/forums/s...ead.php?t=3686
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks