change img to background css code example Example: background image css .selector { background-image: url(image.png); }