Why this after pesudo element doesn't appear | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
8th Sep 2021, 7:45 AM
EsaKurniawan
2 Answers
+ 6
Try this : h1 { position: relative; } h1::after { content: ""; border: 3em solid transparent; border-color: transparent #777 transparent transparent; position: absolute; } Hope this is the effect that you needed.. Your Mistakes : you were selecting h which isnt any valid html tag .. i believe you ment h1 ! and closing brace } was missing
8th Sep 2021, 7:59 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
Prashanth Kumar thanks it's work now
8th Sep 2021, 8:09 AM
EsaKurniawan