Elements must be unique inside his block? #257
Unanswered
Tecayehuatl
asked this question in
Q&A
Replies: 2 comments
-
According this video: video "Elements must be unique inside his block" |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's just no reason for treating elements as IDs. You may use as many elements with the same name as you wish. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Some authors say we don't have to have elements with the same name within his block, they say those must be treated like an ID, which means not to have the same name, but I have seen too many cases like this (They use the "navigation-bar-list__list-item" class many times):
^How do you handle this?
I thinks that BEM tree is right, but I don't know if is valid to don't to fall in DRY in CSS properties (in the below case for no repeating CSS properties):
Beta Was this translation helpful? Give feedback.
All reactions