+ 1

Why not working? (making first line red)

Good daytime! What im doing wrong? (wanna make first line red) padding: 0; margin: 0; ::first-line: color: red; https://code.sololearn.com/W9N2HS8uvFSS/#css

28th Apr 2018, 9:06 AM
Arthur P
Arthur P - avatar
2 Answers
+ 2
thanx friend!
28th Apr 2018, 9:20 AM
Arthur P
Arthur P - avatar
+ 1
The syntax is this: .myClass::first-line { color: red; } So you need to put ::first-line after the elem name, id or class you are modifying.
28th Apr 2018, 9:19 AM
Bebida Roja
Bebida Roja - avatar