Results 1 to 5 of 5

Thread: How To Change Font Color with CSS

  1. #1
    Join Date
    May 2009
    Posts
    45

    How To Change Font Color with CSS

    I am making a website for my College over where i am using CSS,most of my code consists of HTML coding because i know it very well but on some page i was being forced to use CSS,Everything is working fine expect my CSS page is not able to change the font color.Can anyone tell me what code i need to write for changing the font color with CSS.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Changing Font Color in CSS

    USe the followign code for changing the font color


    HTML Code:
    <html>
    <head>
    <title> TITLE</title>
    < meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    <img src="http://www.techarena.in" onClick="document.getElementById('divIDName').style.color='#EEEEEE'">
    <span id="divIDName">Good Bye</span>
    </body>
    </html>

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: How To Change Font Color with CSS

    For changing Font color with CSS you need to follow some few steps which are as follows:-
    1. Add the style property to the tag by using <p style="">
    2. Now place the color style property in the attribute value by using <p style="color:">
    3. Then add your color to the style by <p style="color:red;">
    4. Now type the text which you need inside the paragraph.
    5. Finally close the paragraph tag by using </p>

  4. #4
    swapantech1 Guest

    Re: How To Change Font Color with CSS

    Dear Sir,

    With due respect, it is excellent.

    swapan

  5. #5
    Join Date
    Jan 2010
    Posts
    1

    Re: How To Change Font Color with CSS

    Quote Originally Posted by Modifier View Post
    For changing Font color with CSS you need to follow some few steps which are as follows:-
    1. Add the style property to the tag by using <p style="">
    2. Now place the color style property in the attribute value by using <p style="color:">
    3. Then add your color to the style by <p style="color:red;">
    4. Now type the text which you need inside the paragraph.
    5. Finally close the paragraph tag by using </p>
    +

    WHERE exactly would this code go in the CSS sheet
    I can not see the word in the CSS sheet
    which needs a DIFFERENT color

    thanks
    -sam-

Similar Threads

  1. How to change font color in taskbar of Windows 8
    By Anikait in forum Customize Desktop
    Replies: 3
    Last Post: 25-05-2013, 10:55 AM
  2. Replies: 2
    Last Post: 01-02-2012, 02:08 PM
  3. Procedure to Change font text color in Windows 7
    By chyarte in forum Windows Software
    Replies: 4
    Last Post: 03-12-2010, 06:45 AM
  4. Change font color within Gantt bars
    By Manik in forum Microsoft Project
    Replies: 3
    Last Post: 07-02-2009, 02:12 AM
  5. How to add color and change font size in signature
    By rasena in forum Windows Vista Mail
    Replies: 2
    Last Post: 14-03-2008, 08:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,490,950.79015 seconds with 17 queries