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?
Author
Posts
Viewing 1 post (of 1 total)
The forum ‘CSS’ is closed to new topics and replies.