Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    California
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is it possible to make a background not repeat in HTML?

    Is this possible? Any cross browser compatibility issues?

    TIA...

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's only possible with CSS: background-repeat: no-repeat;

    http://www.devguru.com/Technologies/...undrepeat.html

  • #3
    New to the CF scene
    Join Date
    Jan 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you referring to keeping the background stationary?

    I use the body tag
    <body bgproperties=fixed background=whatever.gif .....

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    BODY{background-position:center;background-repeat=no-repeat;background-color:#c0c0c0}

    In the above block of STYLE, we have a centered non-repeating background that is always in the center of the window (even on resize). Also, the background color covers the area where the picture doesn't repeat (it should be a color that can match the picture in some way).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •