This will get your background image in the center of your page and will keep its position fixed so it does not scroll with the page
put this in between your head tags
<style type="text/css">
<!--
body {
background-attachment: fixed;
background-image: url(file);
background-repeat: no-repeat;
background-position: center center;
}
-->
</style>
you can change the position...the first one is horizontal and the second one is vertical so for left top it woul read
body {
background-attachment: fixed;
background-image: url(file);
background-repeat: no-repeat;
background-position: left top;
}
if you want it to tile just deleat the no- part...if you want it to tile only horizontally change no-repeat to x-repeat....y-repeat will tile vertically only
then if you want it to scroll change fixed to scroll
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.