Page 1 of 1

Calling variable from CSS file?

Posted: Wed Jun 18, 2003 1:56 pm
by slipstream
I have this css command:

Code: Select all

body 
{
background-image: 
url(<?php $empName."gif"  ?>); //here
background-repeat: 
no-repeat;
background-position: center right;
&#125;
</style>
and the URL command I want it to show the image. I know empName already has a valid value in it but calling it from this CSS command is tough. Any ideas?

(Admin Edit Note: Thank you for using a BBCode, however, please also ensure that you don't also Disable the BBCode in the post.)

Posted: Wed Jun 18, 2003 2:44 pm
by releasedj
Did you mean:

Code: Select all

<?=$empName."gif"?>

Posted: Wed Jun 18, 2003 2:47 pm
by slipstream
Thanks for your help, I got it.. :D

Posted: Wed Jun 18, 2003 2:50 pm
by releasedj
Is this embedded in the HTML document?

Posted: Wed Jun 18, 2003 2:52 pm
by releasedj
Cool