C
C
copal2016-01-30 15:04:57
css
copal, 2016-01-30 15:04:57

Calling through a sequence of classes in css is bad?

.one-class > .two-class > three-class > .four-class > .five-class {...};

Calling like in the code above, is it bad? Is it necessary to write in such a way that the appeal is minimal, like below?
.one-class {...};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
riot26, 2016-01-30
@copal

You need to write your CSS in such a way that small changes to the HTML structure don't require you to rewrite the CSS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question