+ 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
2 Answers
+ 2
thanx friend!
+ 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.