Results 1 to 4 of 4

Thread: [RESOLVED] absoule beginner question: how to use style

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Resolved [RESOLVED] absoule beginner question: how to use style

    hey all.
    i want to do simple thing
    change font style (color,face,...)

    i read that <font> is deprecated, and i should use style
    the problem is that inline style (from what i read) can be used only in tag

    now let say i have one word - NO
    i want - N - to be in green color
    and - O - in blue color

    how can i do this with style tag
    (i know how to it with font tag but it's deprecated)

    thanks in advanced.

  2. #2
    Hyperactive Member Aash's Avatar
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    491

    Re: absoule beginner question: how to use style


  3. #3
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: absoule beginner question: how to use style

    You could use the :first-letter pseudo class:
    Code:
    <style type="text/css">
    p{color:blue;}
    p:first-letter{color:green;}
    </style>
    <p>NO</p>

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: absoule beginner question: how to use style

    thank you both
    the link helped to find the tag i was needed
    all tags i tried inserted CR <br> at the end of them
    but this tag - span - didn't
    and this is exactly what i was looking for
    thank you very much both

Posting Permissions

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



Click Here to Expand Forum to Full Width