CSS Help
-
wp 2.84/ theme: sliding doors
I’m having trouble using php in a css (image menu) file. I’d like to change this:
#imageMenu ul li.bk1 a { background: url(images/A_1.jpg) repeat scroll 0%; }to this:
#imageMenu ul li.bk1 a { background: url(images/A_<?php echo(rand(1,7)); ?>.jpg) repeat scroll 0%; }The images A_1 thru A_7 have been uploaded via ftp to the appropriate folder, but the code produces white space where the random photo should appear. I’ve used the echo code in ordinary theme files previously, but don’t know how to employ it in a css file. Can someone point me in the right direction? Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘CSS Help’ is closed to new replies.