/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscFeb 27.2012 — http://stackoverflow.com/questions/2860387/ipad-iphone-scale-background-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.
Copy linkTweet thisAlerts:
@africanoauthorFeb 29.2012 — 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.
×

Success!

Help @africano spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...