css code for using a background image

body
{
text-align: center;
padding: 0px 0px 0px 0px;
margin: 0px auto;
vertical-align:top;
font-family:Verdana, Arial, Helvetica, sans-serif;
background-color: #6ab9d4;
font-size:12px;
line-height: 16px;
color:#FFFFFF;
text-align:left;
background-image: url(../images/bg.jpg);
background-size: 100%;
background-attachment:fixed;
background-repeat:no-repeat;
}

 

New code for BG

html {
background: url(../images/bg1.jpg) no-repeat center center fixed #181123;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

body
{
text-align: center;
padding: 0px 0px 0px 0px;
margin: 0px auto;
vertical-align:top;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
line-height: 16px;
color:#333333;
text-align:left;

}

 

Leave a Reply

Your email address will not be published. Required fields are marked *