android - Make background cover all screen sizes -


i have code makes background picture cover whole screen, not content. works fine computer , iphone android picture doesn't stretch length wise cover whole screen vertically. code follows.

css:

body {     background-image:url(background.png);     border:none;     background-size:100%;     -webkit-background-size:100%;     -moz-background-size:100%;     -o-background-size:100%;     background-attachment:fixed;     background-repeat:repeat-x; } 

the image 5x500 pixels. if have better solution cover page background image let me know.

background size can ggive problems sometimes. try adding min-height html

try adding

min-height: 100%; 

to body


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -