www.webdeveloper.com
Results 1 to 4 of 4

Thread: Css pirport

  1. #1
    Join Date
    Nov 2007
    Posts
    113

    Unhappy Css pirport

    I HAVE EXTERNED css , where have font{ color: gray;
    font-size: 0.7em}
    late , in some part of my font , I want the font be red
    but the Hell still gray <font color="red" >hello</font>
    how can I let this part turn to red
    Thank you

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Give the full code you are using.

    font is depreciated, stop using it.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Jul 2009
    Posts
    184
    Is this what you're thinking of?

    Code:
    <span style="color: gray;">hell</span><span style="color: red;">o</span>
    Alternatively, if you want all text red in that section, and just the "hell" part gray:

    Code:
    <div style="color: red;">
    <span style="color: gray;">hell</span>o I am red text I am red text
    </div>

  4. #4
    Join Date
    Nov 2007
    Posts
    113
    Thank you WesrWeb

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles