Referencing PHP in CSS
-
I have a simple problem on a website I’m working on, I want to dynamically get featured image, which I know how to do.
But the background image for the div which holds it is defined in the CSS. This is mandatory as I need a gradient overlay over the image which can be done in CSS.
I was thinking of assigning the div an image in the HTML and set the gradient overlay in the CSS and give it a z-index of whatever.
How do you dynamically reference post images if you have additional formatting? Much appreciated.
The site i am working on is here.
The topic ‘Referencing PHP in CSS’ is closed to new replies.