I’m trying to add an image in my CSS

That’s because php code inside a CSS file is not parsed unless you configure your server to. Just use it as a relative path to the image (as per the CSS file).

background: url("images/bg.jpg");

Leave a Comment