I need to dynamically change the background image of a class using an external CSS file. The image should be randomly selected from a specified path.
While I know how to achieve this in PHP, I am looking to implement it in the external CSS file instead.
Any CSS tricks or suggestions would be greatly appreciated.
Below are the properties of the CSS class:
.birthday
{
background:url(../images/Bday.jpg) no-repeat center;
font: bold 25px "trebuchet ms", Tahoma, Verdana, Arial, Helvetica, sans-serif;
color: #930204;
padding: 25px 0px 0px 200px;
height: 195px;
}
The path is provided based on the existing file structure.