1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change css font properties mid sentance?

Discussion in 'HTML, Graphics & Programming' started by Adam, 27 Feb 2006.

  1. Adam

    Sgarrista

    Joined: 18 Oct 2002

    Posts: 8,951

    Poor title I know but bare with me. I have a sentance, for example:

    "Hello my name is Fred"

    Say I wanted the "Hello my name is" part of the sentance to be one colour, then the remaining word, in this case "Fred" to be a seperate colour and have different properties. How could I do this without the sentance breaking onto another line using either <p> or <br>?
     
  2. robc123

    Gangster

    Joined: 24 Jun 2005

    Posts: 249

    <span>
     
  3. Adam

    Sgarrista

    Joined: 18 Oct 2002

    Posts: 8,951

    Thanks thats spot on :)