You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would like to know how should I use BEM with document level (i.e. tag). Should I make something like and next add parts like header, content, footer etc. as elements (i.e. <header class="page__main-header")?
How should I nest block to make them flexible? Should I make i.e.
Idea-1.
Idea 1 seems more flexible, because my block is flexible. Drawback is I need additional element to control each block and parent block needs elements for each nested block inside.
This discussion was converted from issue #108 on September 12, 2022 19:49.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I would like to know how should I use BEM with document level (i.e. tag). Should I make something like and next add parts like header, content, footer etc. as elements (i.e. <header class="page__main-header")?
How should I nest block to make them flexible? Should I make i.e.
Idea-1.
and style
or just
Idea-2.
with style
Idea 1 seems more flexible, because my block is flexible. Drawback is I need additional element to control each block and parent block needs elements for each nested block inside.
Thank you,
Greg
Beta Was this translation helpful? Give feedback.
All reactions