Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [bem]

BEM, short for Block-Element-Modifier, is a way to develop modular web pages which are easy to support.

Filter by
Sorted by
Tagged with
1 vote
0 answers

Simple html/css challange for learning purposes

As part of my study, I decided to do this task from frontendmentor site. It's a short html code but I would like to learn good practices from the beginning. The problem I had encountered: Adding ...
Mati's user avatar
  • 11
1 vote
1 answer

CSS organization with BEM

I've recently learned BEM & SASS, and I'd like to know if my BEM syntax is correct. I'm trying to create just the header of this page: ...
Ryan's user avatar
  • 21
1 vote
1 answer

CSS and React.js for a basic navigation drawer

I am trying to optimize my navigation drawer code. I have tried and followed the BEM naming convention for my CSS although I would like it reviewed with respect to the best practices being followed. ...
anup's user avatar
  • 149
0 votes
2 answers

Simple SASS & BEM module for social feed widgets

I've been messing around with SASS and BEM for the last few months. I recently starting 'thinking' in modular in terms of building out my applications (for re-usability and simplicity). I am coding ...
daniel aagentah's user avatar
1 vote
1 answer

Flexbox & BEM 'table'

Using SCSS and React, I have made a little table (not an HTML table), which is responsive based on variable-width cells. That is to say, each cell whose width is not variable has a ...
alanbuchanan's user avatar
  • 1,302
2 votes
1 answer

Modular, conflict free, BEM-style CSS

I want to standardise the CSS I use, and am leaning towards bem — I know I'll get a lot of benefit from the predictability of its pattern. I have hacked their formula ever so slightly - I don't ...
Martin Hansen Lennox's user avatar
6 votes
1 answer

Shopping Cart with React JS

I've just created my first set of related classes in React and would like to get feedback from more experienced React developers. I've used ES and completely vanilla React. The application is a ...
Toni Leigh's user avatar
7 votes
3 answers

Revealing store sales based on time

I am delving into trying to write some JavaScript code. I understand the basics, (the very basics...) enough that I have been able to write the following and it works. However, my knowledge doesn't ...
w3littlebird's user avatar
7 votes
3 answers

BEM email structure

I have started using BEM syntax for my HTML and CSS. I got the idea from Harry Roberts' blog post "MindBEMding – getting your head 'round BEM syntax". Please note I am not looking to use this for ...
Pierce McGeough's user avatar