Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Combining Paragraph With Span Class?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #152147
    MBM
    Participant

    I want to style an individual piece of text within a paragraph i.e. make a piece of text large and in a different colour for a heading then continue with the rest of the paragraph. I’m not sure of the syntax. I have :

    <p class="special"><span class="big">Offer 1</span>Rest of paragraph.</p>

    p.special {margin:30px;font-family: 'Cantora One';font-size:22px;background:#eeeeee;}

    .big {font-size:140px:}

    The span text is not displaying with the above styling.

    #152148
    Paulie_D
    Member

    Here

    .special .big {
      font-size:140px;  
    }
    

    http://codepen.io/anon/pen/xkmfA

    #152149
    MBM
    Participant

    Thanks. Had : instead of ; as well.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.