scrapps228
04-08-2004, 05:47 PM
I'm trying to take images I have and use them to make backgrounds. But I've run into a problem. The image keeps repeating itself. For example, I want one solid image that will be the background. But instead, they're are several of them filling up the whole page!! I just want one! The HTML I put was :
<body background="http://www.blahblah.com/image/imagefrobackground.jpg"></body>
Why doesn't it work? Can someone help me?
bourdelson
04-08-2004, 05:49 PM
You have better options if you use CSS.
<style type="text/css">
body {background-image: url('http://www.blah.com/stuff/image.ext');
background-repeat:no-repeat;}
</style>
http://www.lissaexplains.com/css.shtml for more info.
scrapps228
04-08-2004, 05:53 PM
Thank you very much, but would this work for neopets?
bourdelson
04-08-2004, 05:54 PM
Yes, you just have to put the style stuff right below the <body> tag.
scrapps228
04-08-2004, 06:02 PM
Hmm...It's not working for me. Can you show me the code (with the "body" stuff) once more, because I tihnk I made a mistake somewhere. Thanks in advanced.
bourdelson
04-08-2004, 06:12 PM
For Neopets, it should look like this:
<body>
<style type="text/css">
body {background-image: url('http://whatever.com/thing/image.ext');
background-repeat:no-repeat;}
</style>
all of your other stuff here
and here
.
.
.
.
..
</body>
</html>