use div class for backround image css code example Example: make image background of div background-image: url("photographer.jpg");