J
J
jarderRek2022-04-19 20:08:45
css
jarderRek, 2022-04-19 20:08:45

What would be the best thing to do in this situation?

https://codepen.io/fazras12/pen/YzYBNMa

I want the first card to have different styles: The card itself is gray and the text color is red.
I want to make modifiers for card, desciption, title. Well, maybe there is another option, more correct?

And if we assume there will be not 3 modifiers, but 20? How then? How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imko, 2022-04-19
@jarderRek

.card:first-child{
  //все что хочешь
}

https://developer.mozilla.org/en/docs/Web/CSS/:fir...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question