Results 1 to 2 of 2

Thread: centering a background image?

  1. #1
    Join Date
    Jan 2003

    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
    Centered an not tiling? Sure baby!

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

    You can do more than that. Please see:

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