sam06 Posted May 18, 2008 Share Posted May 18, 2008 Hi there, I'm trying to obtain $cohyp from config.php, and use that so all the hyperlinks are that colour. I assumed it would be: <?php include('config.php'); ?> <head> <style type="text/css"> a { text-decoration: none; color: <?php $cohyp ?>; } </style> But it's not working- could someone help me? Thanks, Sam Quote Link to comment https://forums.phpfreaks.com/topic/106210-solved-php-variable-for-css-value/ Share on other sites More sharing options...
DeanWhitehouse Posted May 18, 2008 Share Posted May 18, 2008 <?php echo $cohyp; ?> Quote Link to comment https://forums.phpfreaks.com/topic/106210-solved-php-variable-for-css-value/#findComment-544407 Share on other sites More sharing options...
sam06 Posted May 18, 2008 Author Share Posted May 18, 2008 Thats fantastic, many thanks! Quote Link to comment https://forums.phpfreaks.com/topic/106210-solved-php-variable-for-css-value/#findComment-544408 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.