dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: centering a background image?

  1. #1
    Join Date
    Jan 2003
    Posts
    13

    centering a background image?

    i have a background image that im using as wallpaper. it is 800x600 and if someones browser is larger it tiles and i dont want that. is there any code out there that can help me out in case someones resolution is larger than the original background..

  2. #2
    Join Date
    Jan 2003
    Posts
    136
    Centered an not tiling? Sure baby!

    <style type="text/css">
    body {background: #ccc url(pic.jpg) no-repeat center }
    </style>

    You can do more than that. Please see:
    http://www.w3.org/TR/REC-CSS2/colors.html#q2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles