how can i change color of every line in paragrah

+2 suraj kesharwani · July 9, 2015

Post a Reply

Replies

Oldest  Newest  Rating
0 Atanas Kostovski · July 20, 2015
p::nth-last-line(2) { /* this selects second line from the bottom */ }
0 OLayemii Garuba · July 15, 2015
<p style="color:red">Your paragraph content</p> that??
0 Dan Pena · July 15, 2015
Create a div Id for every line that you want to change the color to - check out Tutorial #31, xhtml&CSS.
0 pooja vasavada · July 15, 2015
give span to each line with class name n give color in that class. nth-last-line s not working 
0 Tincu Andrei · July 13, 2015
Be more specific . You have a <p> tag and you want every line in that paragraph to have different colors?
0 suraj kesharwani · July 13, 2015
I am sorry, I didn't get it.
0 Atanas Kostovski · July 12, 2015
Try selecting them with ::nth-last-line(number) pseudo element?
  • 1

HTML / CSS / Web Design

106,939 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators