/    Sign up×
Community /Pin to ProfileBookmark

fixed background

I have problem in order to make a web page with fixed background and content that will fly over it which means background doesn’t move, and the content has side toolbar for scrolling up and down.
Should I solve the problem withwindows, or?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@olafMar 19.2004 — Hallo,

you have ti use a style like this:

body {

background-attachment: fixed;

background-image: url(image.jpg);

background-position: right 300px;

background-repeat: no-repeat;

}
Copy linkTweet thisAlerts:
@jolaauthorMar 19.2004 — No, it doesn't work that way.

I need the whole content of the page to fly over fixed background.

If i put your code the whole page will move up and down including backround, which i do not need.

thank anyway
Copy linkTweet thisAlerts:
@olafMar 19.2004 — then you use it on a wrong way...show some simple code what you are using.

of course the use of the body tag is just an example...

and don't start a new thread for your next answer...
×

Success!

Help @jola spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...