Forums

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

Home Forums CSS CSS Font Colour

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

    I’m having trouble in getting the first letter colourised. I’m new to CSS and am not sure where I went wrong in my coding.

    <html>
    <head>
    <style>
    p:first-letter {
    colour: #003300;
    font-size: xx-large;
    }
    </style>
    </head>
    <body>

    Please remember that a pseudo-element adds a special effect to the first character of a text only

    </body>
    </html>

    #246126
    Paulie_D
    Member

    It’s fine but you misspelled “color”.

    http://codepen.io/Paulie-D/pen/wzPGJw

    #246134
    WayneKenney
    Participant

    Good catch Paulie_D! I almost didn’t notice that..
    CSS selectors use American English.

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