SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member MaxLax44's Avatar
    Join Date
    Sep 2005
    Location
    Rochester, NY
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I make a background like this?

    Well I've been graphic designing for a while now and decided to start to make my own personal site. I have a question about making a background. Is it possible to have this image:



    be centered just once. Not tiled, only one of them centered, and then have a solid color where that image isn't? Do you guys understand what I'm asking?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #foo {
      background: #369 url(/images/bg.png) no-repeat;
    }
    or, if you want to spell it out:
    Code:
    #foo {
      background-color: #369;
      background-image: url(/images/bg.png);
      background-repeat: no-repeat;
      background-position: center center;
      background-attachment: scroll;
    }
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

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