:first-line does not seem to be supported, right?
Forum › How do I...?
Selector :first-line
I guess this could be a way to go:
And then:
Of course - it would be nice if I could do this in CSS alone.[/code]
<div>
<span>This is the first line of text</span>
<span>This is the second line of text</span>
...
</div>
And then:
div > :nth-child(1)
{
color: red;
}
div > :nth-child(2)
{
color: green;
}
Of course - it would be nice if I could do this in CSS alone.[/code]