Forums

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

Home Forums CSS Special Cap Weirdness

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #300218
    dustnik
    Participant

    I created a special capital letter for the beginning of each chapter of a story I wrote using the selector:

    p:first-of-type::first-letter

    It works perfectly until the last chapter which happens to contain a div. In addition to the special-cap letter beginning the chapter, there is also a special-cap letter beginning the div. Why? Is there any way to prevent this other than writing another code to change that one letter back again?

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