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>'; Quote Link to comment https://forums.phpfreaks.com/topic/286927-displaying-colour/ Share on other sites More sharing options...
Solution Psycho Posted March 12, 2014 Solution Share Posted March 12, 2014 You're mixing up properties. echo '<p style="color:red; font-family:verdana; font-size:20px;"> Heading </p>'; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/286927-displaying-colour/#findComment-1472400 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.