INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Netscape BG Image Problem

Body Background CSS by deecee
Posted: 13 Oct 02

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


Back to HTML, XHTML & CSS FAQ Index
Back to HTML, XHTML & CSS Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close