Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

code for make the background stay on the same position?

How are you?

i would like to know the code for make the background stay on the same position even if you scroll down for see other part of the website
example

body {

background: black url(http://example.com/example.jpg) center;



}



thank you
That bit would have to be done through css

Code
body
{
background-image:url('the image');
background-attachment: fixed;
background-repeat:no-repeat;
background-position:;
}

Something like that I think
how are you?
thank you for help that help
(Aug 23, 2012 10:03 AM)HackMo҉o҉N Wrote:  how are you?
thank you for help that help

No problem at all. You should check out the website links below, there pretty handy for CSS if you don't know something.

http://www.w3schools.com/css/
http://www.w3.org/Style/CSS/Overview.en.html

there's a lot more than that haha
(Aug 23, 2012 10:25 AM)DEFQON Wrote:  No problem at all. You should check out the website links below, there pretty handy for CSS if you don't know something.

http://www.w3schools.com/css/
http://www.w3.org/Style/CSS/Overview.en.html

there's a lot more than that haha

No, http://www.codecademy.com/learn

And:
background: #000 url('') fixed no-repeat center;

Save some lines and frustration later on.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by randomFunPartyNov 19, 2019 04:22 AM 5 155 Nov 19, 2019 04:22 AM
Last Post: Nachfolger
by craigOwnsYouOct 13, 2019 04:00 AM 2 91 Oct 13, 2019 04:00 AM
Last Post: Nachfolger
by DaemonSicNov 26, 2017 07:15 AM 4 143 Nov 26, 2017 07:15 AM
Last Post: DaemonSic