css image 100% code example
Example 1: scale down image css
img.resize {
width: 540px; /* you can use % */
height: auto;
}
Example 2: how to set background image in css responsive
body{
background:url("images/xyz.jpg") no-repeat center;