make background image of div responsive code example Example: how to set background image in css responsive body{ background:url("images/xyz.jpg") no-repeat center;