vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Fix Image for website

[F] Fix Image for website - Posted By Nick (nickb) on 9th Mar 08 at 11:11pm
I need the code that Fix's the image, I need it for my website.

Thanks,
Darkmage

Re: Fix Image for website - Posted By Michael (wrighty) on 9th Mar 08 at 11:14pm
What do you mean 'Fix's the image' ..

Firstly, what image, and secondly, WHAT DO YOU MEAN{Confused}


























{Grin}

Re: Fix Image for website - Posted By Nick (nickb) on 9th Mar 08 at 11:18pm
Fix as in making it not repeat

EX: http://freunion-home.co.nr its the image behind the tables.

Re: Fix Image for website - Posted By Michael (wrighty) on 9th Mar 08 at 11:25pm
try:

<style>
body {
background-repeat: no-repeat;
}
</style>

Re: Fix Image for website - Posted By Nick (nickb) on 9th Mar 08 at 11:28pm
It works, but now it shows black underneath the image {Sad}

if you look at my forum, and the background were the image is fixed and not moving at all.

Re: Fix Image for website - Posted By Graham (amusedtodeath) on 9th Mar 08 at 11:29pm
Can you provide a link? {Smile}

Re: Fix Image for website - Posted By Michael (wrighty) on 9th Mar 08 at 11:30pm
then add:

<style>
body {
background-attachment: fixed;
}
</style>

Re: Fix Image for website - Posted By Nick (nickb) on 9th Mar 08 at 11:30pm
Thanks, that works.