tommyturner2007 Posted June 15, 2008 Share Posted June 15, 2008 Hello, I have a PHP Script that I have included in a black web page. It requires input from the user and generates output. By default, the output is Black and Times New Roman. I wish to change to White, Verdana. Does anybody know how to change the font of this script? Thanks, Tom Quote Link to comment https://forums.phpfreaks.com/topic/110343-change-php-font-color/ Share on other sites More sharing options...
Steve Angelis Posted June 15, 2008 Share Posted June 15, 2008 Have a drop down and use the $_GET function? Quote Link to comment https://forums.phpfreaks.com/topic/110343-change-php-font-color/#findComment-566140 Share on other sites More sharing options...
.josh Posted June 15, 2008 Share Posted June 15, 2008 ermm...what exactly do you mean? PHP is not in charge of colors/fonts. That's straight html/css. are you wanting the user to be able to pick from a list? make a form with a dropdown or something, and have php echo out the html/css with the color/font choice. But if you're looking to just have it output white in general..that's straight html/css <style = 'text/css'> #somestyle { color: #ffffff; } </style> <p id='somestyle'>example using css</p> <font color = 'white'>example using html</font> Quote Link to comment https://forums.phpfreaks.com/topic/110343-change-php-font-color/#findComment-566146 Share on other sites More sharing options...
tommyturner2007 Posted June 16, 2008 Author Share Posted June 16, 2008 ermm...what exactly do you mean? PHP is not in charge of colors/fonts. That's straight html/css. are you wanting the user to be able to pick from a list? make a form with a dropdown or something, and have php echo out the html/css with the color/font choice. But if you're looking to just have it output white in general..that's straight html/css <style = 'text/css'> #somestyle { color: #ffffff; } </style> <p id='somestyle'>example using css</p> <font color = 'white'>example using html</font> I have a web page. The background is back. I am using the include command to include a PHP Script. But the PHP script has black text, so it is not visible against the black backround. I simply want to make the text white. Quote Link to comment https://forums.phpfreaks.com/topic/110343-change-php-font-color/#findComment-566155 Share on other sites More sharing options...
.josh Posted June 16, 2008 Share Posted June 16, 2008 so then just add some css or html like in my example, before the include. Quote Link to comment https://forums.phpfreaks.com/topic/110343-change-php-font-color/#findComment-566162 Share on other sites More sharing options...
Lodius2000 Posted June 16, 2008 Share Posted June 16, 2008 agreed, crayon violet if following the rules of css/html whatever styling is closest to the current document will override other styling ie you could have a document refrencing a zillion stylesheets, but if you put <style = 'text/css'> p { color: #ffffff; } </style> inside the <head></head> tags in your doccument ALL text will be white links will still be blue though Quote Link to comment https://forums.phpfreaks.com/topic/110343-change-php-font-color/#findComment-566166 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.