2 番目の画像の選択に nth-child(even) を使う方法を教えてください

順を追って解説していきます。
2023年7月17日
ユーザー

こんにちは。2 番目の画像の選択に HTML の section の class 属性に feature reversed を使わずに nth-child(even) を使いたいたく、下記のようにしたら上手くいきませんでした。

どうしたらよいでしょうか。よろしくお願いします。

HTML

 <section class="feature">

CSS

.pic nth-child(even) {
    flex-direction: row-reverse;
  } または

.feature nth-child(even) {
    flex-direction: row-reverse;
  }

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?