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 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; ?> 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! 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
Archived
This topic is now archived and is closed to further replies.