N
N
Norum2021-10-26 19:01:44
HTML
Norum, 2021-10-26 19:01:44

Is it possible to include reset.css in BEM layout and use the * symbol to reset all indents?

I read that when laying out in BEM, you cannot apply such general styles as * { margin: 0; padding: 0; } and that you can't include a file with dropping styles, such as ununderlining links, marking li in ul lists, etc. Is it really true?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Frontend developer, 2021-10-26
@markak

reset.css is not recommended
https://en.bem.info/forum/507/
https://github.com/bem-site/bem-forum-content-en/i...
try normalize.css
https:/ /ru.bem.info/forum/-391/

A
Alexander, 2021-10-26
@Aleksandr-JS-Developer

Not only in BEM, but just in CSS, it has long been recommended not to use reset.css
Asterisks to remove indents, all the more so. Stone Age.
Now many people use normilize.css
It doesn't reset styles, but brings it to the same view in all browsers (well, or at least it tries).
There is also an interesting analog reseter.css
Positions itself as a "futuristic alternative to Normalize.css And CSS Resets".
The last update of the repository was two months ago, which is pretty good for this kind of software.
The repository page describes all the goodies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question