www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] How can I make two backgrounds on my page

Hybrid View

  1. #1
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    364

    resolved [RESOLVED] How can I make two backgrounds on my page

    I would like to make a page where the body has a background repeating in both the x and y directions and one spanning only across the top. How can I pull this off?

    I can't make a 100% width div tag because it does not look right in all browsers.

    Thanks,
    Multi

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    html {background:url(top_image.jpg) repeat-x}
    body {margin-top:100px; background:url(xy_image.jpg)}
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    364
    Thanks again, Fang. This is the approach on which I settled. Fortunately, it works in this case.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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