jadeg Posted March 12, 2014 Share Posted March 12, 2014 I have a php script in which i have inserted this html code. However, the colour isn't displayed, every other thing works. any ideas as to why is this echo '<p style="font-color:red;family:verdana;font-size:20px;"> Heading </p>'; Link to comment https://forums.phpfreaks.com/topic/286927-displaying-colour/ Share on other sites More sharing options...
Psycho Posted March 12, 2014 Share Posted March 12, 2014 You're mixing up properties. echo '<p style="color:red; font-family:verdana; font-size:20px;"> Heading </p>'; Link to comment https://forums.phpfreaks.com/topic/286927-displaying-colour/#findComment-1472388 Share on other sites More sharing options...
jadeg Posted March 12, 2014 Author Share Posted March 12, 2014 Thanks Link to comment https://forums.phpfreaks.com/topic/286927-displaying-colour/#findComment-1472400 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.