End CSS Conflicts With Block-Element-Modifier (BEM)by@KossySteve

End CSS Conflicts With Block-Element-Modifier (BEM)

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Block Element Modifier is the latest industry best practice for writing CSS. It is a set of rules on how to name and use more CSS classes. BEM is a guideline, not a piece of technology or a new framework, so you don’t have to update your CV. The class block refers to the parent container of various related elements, while the class block__element refers to its contents. These contents may be of different CSS stylings hence, to differentiate them you may attach a modifier to its class.

Company Mentioned

Mention Thumbnail
featured image - End CSS Conflicts With 
Block-Element-Modifier (BEM)
Stephen Kossy HackerNoon profile picture

@KossySteve

Stephen Kossy


Receive Stories from @KossySteve

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa