43 users online (1 members and 42 guests)  

Thread: Css text color


  Results 1 to 3 of 3

Related

  1. how do I change text color?    Forum: CSS Forum
    Replies: 1
  2. CSS text color    Forum: CSS Forum
    Replies: 10
  3. Changing Color of Text Box Scroll Bar    Forum: HTML Forum
    Replies: 4
  4. Changing Text Box Scroll Bar Color    Forum: HTML Forum
    Replies: 1
  5. Text color on buttons    Forum: HTML Forum
    Replies: 5
  1. #1
    illusionbuster's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Location
    north carolina
    Posts
    4

    Red face Css text color

    I am trying to use Css to change text color (not using it for headers)and then change it back to previous color but in using:
    .navy {color:#000080;}
    .black {color:#00000;}
    etc
    HTML= <div class="navy"> etc

    what happens is in HTML the color is changed but it does so on a new line and I want it on the same line. Is there another way of doing this?

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Css text color

    Use a span instead of a div.

  3. #3
    illusionbuster's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Location
    north carolina
    Posts
    4

    Re: Css text color

    Quote Originally Posted by jthayne View Post
    Use a span instead of a div.
    Ah! Thank you very much. It worked. This will save me a lot Html code typing.My fingers are joyful.



Tags for this Thread