For Neopets ONLY discussion.
Topic locked

Gallery background picture question

Sun Mar 05, 2006 2:58 am

What's a good size for a gallery background picture so that it won't repeat the image? I am trying to get a background up, but the image repeats right down the middle of the page and it's making me crazy.

Re: Gallery background picture question

Sun Mar 05, 2006 3:12 am

C_Lady wrote:What's a good size for a gallery background picture so that it won't repeat the image? I am trying to get a background up, but the image repeats right down the middle of the page and it's making me crazy.


None. That's the best size. (Or, you could try 100%, so it fits everything).

Sun Mar 05, 2006 4:16 am

You could just have the image not repeat.

I'm not sure if you can use CSS in a gallery, but if you can...
Code:
<style>
body
{
background-image:
url('http://somewebsite.com/whatever.gif');
background-repeat:
no-repeat;
background-attachment:
fixed;
background-position: center;
}
</style>


Just put that at the top of the page.

here

Sun Mar 05, 2006 8:43 am

YOU CAN GET BACKGRONDS OFF NEODRAGONRIDERS.COM :D

Sun Mar 05, 2006 8:53 am

1024x800? I dont know, something that fits the full screen i guess.

Mon Mar 06, 2006 2:48 am

Different computers have different monitor settings. If you have 600*800 then it will fill your whole screen but people who have 1250*768 will have the image repeat :(

the most common size is 1250*768 though

Mon Mar 06, 2006 7:10 am

stampsyne wrote:Different computers have different monitor settings. If you have 600*800 then it will fill your whole screen but people who have 1250*768 will have the image repeat :(

the most common size is 1250*768 though


Actually, the size is 1024x768. However, I would really recommend using the code that Shapu put up there, because it'll probably work better than anything we can suggest.
Topic locked