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

Thread: iPad/iPhone Css Background

  1. #1
    Join Date
    Jan 2010
    Posts
    40

    iPad/iPhone Css Background

    hello
    i have a big problem with the background image, my background image works fine with most of the browsers except iPhone and iPad.
    html{
    width:100%;
    /*height:100%;*/
    float:left;
    background:url(../images/bg.jpg) top center no-repeat;
    }

    i used the height and float but both of them not showing my background as it shown in all browsers it looks like it is resized in the iPhone and iPad too.
    anyone can help me with this?
    thank you

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    http://stackoverflow.com/questions/2...kground-images

    Also, background images go on the body element, not html - in 99% of cases. You don't need any of those styles on your HTML element.

  3. #3
    Join Date
    Jan 2010
    Posts
    40

    Thumbs up thank you

    thank you for replaying me
    about your answer i did it with the <body> but still with the same problem, i think i am going to apply it as it is in your link that you gave it to me.
    thank you again.

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