<h2>タイトル</h2> <p>1番目のテキスト</p> <p>2番目のテキスト</p> <h2>タイトル</h2> <p>3番目のテキスト</p> <p>4番目のテキスト</p>
p:nth-of-type(3) { color:red; } p:nth-child(3) { color:blue; }
This Pen is owned by niwaka-web on CodePen.
See more by @niwaka-web on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.