Tuesday, September 13, 2011

How to change php font color?? urgent 10 points?

helpp



ho to change font color in php codes?How to change php font color?? urgent 10 points?
Section 1: Changing Full-Page Text Colors



You have the ability to change full-page text colors over four levels:

%26lt;TEXT=';######';%26gt; -- This denotes the full-page text color.



%26lt;LINK=';######';%26gt; -- This denotes the color of the links on your page.



%26lt;ALINK=';######';%26gt; -- This denotes the color the link will flash when clicked upon.



%26lt;VLINK=';######';%26gt; -- This denotes the colors of the links after they have been visited.



These commands come right after the %26lt;TITLE%26gt; commands. Again, in that position they affect everything on the page. Also... place them all together inside the same command along with any background commands. Something like this:



%26lt; BODY BGCOLOR=';######'; TEXT=';######'; LINK=';######'; VLINK=';######';%26gt;



Please note: When you write these codes, you can write them with a # sign in front of the hex code or not. It used to be that that was required, but not any more. I still use it just because I started that way. You may want to just go with the six-digit code. Also make sure to place a space between each command and be sure to enclose it in quotation marks, like so:



%26lt;VLINK=';#FFFFFF';%26gt;



Section 2: Changing Specific Word Color



But I only want to change one word's color!

You'll use a color (hex) code to do the trick. Follow this formula:



%26lt;FONT COLOR=';######';%26gt;text text text text text%26lt;/FONT%26gt;



It's a pain in the you-know-where, but it gets the job done. It works with all H commands and text size commands. Basically, if it's text, it will work.



Using CSS to Change Text Colors



There isn't enough space to fully describe what CSS is capable of in this article, but we have several articles here that can get you up to speed in no time!

A quick intro to CSS is in order, so let's describe it a bit. CSS is used to define different elements on your web page. These elements include text colors, link colors, page background, tables, forms--just about every aspect of the style of the web page. You can use CSS inline, much like the HTML above, or you can, more preferably, include theh style sheet within the HEAD tags on your page, as in this example:



%26lt;STYLE type=text/css%26gt;

A:link {

COLOR: red /*The color of the link*/

}

A:visited {

COLOR: #800080 /*The color of the visited link*/

}

A:hover {

COLOR: green /*The color of the mouseover or 'hover' link*/

}

BODY { COLOR: #800080 /*The color of all the other text within the body of the page*/

{

%26lt;/STYLE%26gt;

Alternately, you can include the CSS that is between the STYLE tags above, and save it in a file that you could call ';basic.css'; which would be placed in the root directory of your website. You would then refer to that style sheet by using a link that goes between the HEAD tags in your web page, like this:

%26lt;link type=';text/css'; rel=';stylesheet'; href=';basic.css';%26gt;

As you can see in the example above, you can refer to the colors using traditional color names, or hex codes as described above.

The use of CSS is vastly superior to using inline FONT tags and such, as it separates the content of your site from the style of your site, simplifying the process as you create more pages or change the style of elements. If you are using an external style sheet, you can make the change once in the style sheet, and it will be applied to your entire site. If you choose to include the style sheet itself within the HEAD tags as shown above, then you will have to make those changes on every page on your site.



CSS is such a useful tool in your web developer arsenal, you should definitely take the time to read more about it in our CSS Tutorials section.



Or hit shift plus four times :)

Hope that helps!!!

~æ‹¢mily :)How to change php font color?? urgent 10 points?
is it %26lt;font color=';#000000';%26gt; ??
Hit shift plus 4 at the same time.
  • find a promoter
  • most popular girl name
  • No comments:

    Post a Comment