I nearly have my new website complete. Everything is done with the database finally connected and working perfect, the only thing that is failing on the site is the styling on mobile devices. No matter what I try the background moves and it shows a background color on the first page which is what I don't want.
I need your specific help in trying to make sure the background DOES NOT move, and the background color is not directly visible on the first page. Thank you! :)
In my <head>
:
<meta name="viewport" content="width=device-width" />
My Css Code:
img {
max-width:100%;
}
@viewport {
width: extend-to-zoom 980px;
min-zoom: 0.25;
max-zoom: 5;
}
body {
margin:0;
background:url(../images/bg-body.png) repeat-x left top #a6a6a6;
font-family:Arial, Helvetica, sans-serif;
}
a {
outline:none;
}
a img {
border:0;
display:block;
}
.background {
background:url(../images/bg-background.jpg);
background-color: #696969;
background-position: 0 100%;
background-repeat: repeat;
background-attachment: fixed;
background-size: cover;
background-size: 100%;
}