Forums

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

Home Forums CSS CSS Pseudo-Elements

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39112
    swati16
    Member


    Practice CSS :first-letter pseudo element






    First character of this paragraph will
    be normal and will have font size 40 px;



    The first character of this paragraph will be 3em big
    and in red color as defined in the CSS rule above. Rest of the
    characters in this paragraph will remain normal. This example
    shows how to use :first-letter pseudo element to give effect to
    the first characters of any HTML element.





    This css code I have use but instead
    I want to use

    First character of this paragraph will
    be normal and will have font size 40 px;



    The first character of this paragraph will be 3em big
    and in red color as defined in the CSS rule above. Rest of the
    characters in this paragraph will remain normal. This example
    shows how to use :first-letter pseudo element to give effect to
    the first characters of any HTML element.


    and want same result:

    #106928
    SgtLegend
    Member

    You don’t need the double quotes between the class names.

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