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

Thread: Background Image on html/body

  1. #1
    Join Date
    Jul 2010
    Posts
    28

    Background Image on html/body

    Hello. I am building this joomla template and I need to have a background image at the top and one at the bottom that go all the way to the edges of the screen.

    so i put one image on the html tag and one on the body tag. the images are wider then the screen so they reach the edge regardless of the person's screen size:

    html {margin:0; padding:0; background: #f4f4f4 url(../images/image.png) center top no-repeat;}
    body {margin:0; padding:0; background: url(../images/image2.png) center bottom no-repeat;}

    everything looks fine on firefox and IE8,7. but when I look at the page on my iPhone built-in safari browser the bottom image does extend all the way to the right edge. It stops about 150px away from the edge.

    And I've noticed this problem before with other websites. Has anyone else ran into this and is there a way to fix it?

  2. #2
    Join Date
    Feb 2011
    Location
    Chuluota, Florida
    Posts
    144
    Include the ' ' inside of the parentheses around the path to the images and see if that solves the problem.

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