View Full Version : changing the letter color in php...
Mia_tech
August 11th, 2008, 05:28 AM
I have a php page which is pretty much a calendar, but the page background I want to make it black, so the the letter output also come out in black what makes it impossible to see so I put the php code inside the <font color="#ffffff"></font> tags... but the text is still coming out in black
could someone tell me how could do this?
thanks
diafanos
August 11th, 2008, 07:06 AM
why don't you try writing
echo "<font color=#ffffff>"
...rest of your php code...
echo "</font>"
I mean inside your php code, not before and after it
kostkon
August 11th, 2008, 08:27 AM
I have a php page which is pretty much a calendar, but the page background I want to make it black, so the the letter output also come out in black what makes it impossible to see so I put the php code inside the <font color="#ffffff"></font> tags... but the text is still coming out in black
could someone tell me how could do this?
thanks
The font tags are deprecated. Why not use CSS instead to set the text colour to white. You can put the following in the head of your page:
<style type="text/css">
body { color: #ffffff; }
</style>
ThinkBuntu
August 12th, 2008, 12:02 AM
I have a php page which is pretty much a calendar, but the page background I want to make it black, so the the letter output also come out in black what makes it impossible to see so I put the php code inside the <font color="#ffffff"></font> tags... but the text is still coming out in black
could someone tell me how could do this?
thanks
Here's how to do it:
Template Page:<head>
...
<link href="screen.css" rel="stylesheet" media="screen" type="text/css" />
...
</head>
screen.css:
/**
* screen.css
* Calendar App stylesheet
* @media screen
*/
body {
background-color: black;
color: white;
}
/**
* I'm not sure if that DocBlock conforms to any
* standard. I just find that a few comments make
* CSS much easier to maintain.
*/
Try to write the Calendar system as a floated-block layout rather than tables as well. Doing this will make it trivial to use the calendar template in different view styles.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.