Похожие чаты

Last question. if i have 4 styles that has multiple

properties that is duplicate should i separate them or not?
btn {
display: flex;
align-items: center;
justify-content: center;
}

card {
display: flex;
align-items: center;
justify-content: center;
}

alert{
display: flex;
align-items: center;
justify-content: center;
}

should i separate them like this:
.btn, .alert, . card{
display: flex;
align-items: center;
justify-content: center;
}

3 ответов

15 просмотров

Yeah, use judgement to decide at what point they benefit from being grouped

Mr-Thieves Автор вопроса
MUTHU・KUMAR 「メーカー」 🔺
Yeah, use judgement to decide at what point they b...

sorry for bothering you with my repetitive question, my judgement after all of this conversation says that i should group all related styles that have duplicate properties. for example if i have three separate style for header i should group all related styles. and what about separate css styles like this. button.css card.css alert.css and so on. is that better when come to readability?

Mr-Thieves Автор вопроса
Mr Thieves
sorry for bothering you with my repetitive questio...

if there is other answer for this. i want to know. because after 1 ~ 2 hours i want re create my first project. i don't want doing it in wrong way. and have to re build it.

Похожие вопросы

Обсуждают сегодня

Карта сайта