Jump to content

Change PHP Font / Color


tommyturner2007

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/110343-change-php-font-color/
Share on other sites

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>

 

 

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.