how to add image in such way that according to screen resolution it should have to perfect using css only code example
Example: css background image size fit screen
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}