|
background image i know how to put in an image for the background for a website but, how do you make it stay still? i have stripes as the background and i dont like it to move with the text. thanks.
[ ] Want to answer more questions in the Technology category? Maybe give some free advice about: Internet & Web Design?
<html>
<head>
<style type="text/css>
body{
background-attachment:fixed;
background-image:url(your image);
}
</style>
</head>
<body>
your stuff
</body>
</html>
<!--end of html-->
You can remove background-image in <style> if you want, and use <body background=>, but the W3C recommends you use CSS. So this is added in the head section:
<style type="text/css">
body{background-attachment:fixed}
</style> ]
In the background properties section of your website code, is there a spot where it says "background-attachment:"? If so, next to the colon, put "fixed" and it keeps the background in place. If not, add that to your background settings "background-attachment: fixed;" and that should help.
Also, to make it more aligned, you can make a setting to align in the center, or bottom right, for example. "background-position:bottom right;"
I added that because some times when you do put the background in "fixed" mode, it some times aligns to top center or bottom left, and you probably want it to align center to make it look balanced.
Hope I helped =] ]
More Questions: |