quick css/xhtml question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Young
    Bland for life
    • Nov 2004
    • 10468

    #1

    quick css/xhtml question

    i want to change the color of one word in the middle of a sentence. it's not going to be a link...it's just for emphasis.

    using

    Code:
    <font color = "#">
    in the middle of a paragraph doesn't validate.

    is there any way to do it OTHER THAN making it a hyperlink and changing the cursor to default through css.
    ★★★
  • CurrentlySober
    Too lazy to wipe my ass
    • Aug 2002
    • 38944

    #2
    ?
    Lost me dude...


    👁️ 👍️ 💩

    Comment

    • Young
      Bland for life
      • Nov 2004
      • 10468

      #3
      thank you for popping your sig in my thread and giving me a bump.

      anyone? anyone? bueller? bueller?
      ★★★

      Comment

      • Nookster
        Confirmed IT Professional
        • Nov 2005
        • 3744

        #4
        Originally posted by Young
        i want to change the color of one word in the middle of a sentence. it's not going to be a link...it's just for emphasis.

        using

        Code:
        <font color = "#">
        in the middle of a paragraph doesn't validate.

        is there any way to do it OTHER THAN making it a hyperlink and changing the cursor to default through css.
        Use the span element.
        Code:
        <style>#className { color:#ff0000; }</style>
        Your sentence with <span id="className">text to change</span> in the middle.
        The Best Affiliate Software, Ever.

        Comment

        • Young
          Bland for life
          • Nov 2004
          • 10468

          #5
          Originally posted by Nookster
          Use the span element.
          Code:
          <style>#className { color:#ff0000; }</style>
          Your sentence with <span id="className">text to change</span> in the middle.
          awww span.

          thanks! appreciated. owe you one.
          ★★★

          Comment

          Working...