Тёмный

How to Organize CSS | Beginners BEM tutorial 

Dave Gray
Подписаться 303 тыс.
Просмотров 20 тыс.
50% 1

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
How to Organize CSS and a Beginners BEM tutorial. This CSS tutorial for beginners looks at several helpful ways to organize your CSS styles and introduces the BEM naming convention methodology.
🚩 Subscribe ➜ bit.ly/3nGHmNn
🚀 This lesson is part of a CSS for Beginners tutorial series playlist:
• CSS Tutorials for Begi...
🔗 All Resources for this CSS Tutorial Series: github.com/gitdagray/css_course
📬 Course Updates ➜ courses.davegray.codes/
How to Organize CSS | Beginners BEM tutorial
(00:00) Intro
(00:05) Welcome
(00:26) Follow Your Team
(01:16) Create Headings with Comments
(02:24) Sort CSS properties by ABCSS or groups
(05:40) Naming Convention Methodologies
(06:41) BEM - Blocks
(08:10) BEM Blocks with Modifiers
(11:07) BEM Blocks vs Elements
(14:32) Header example styles
(16:15) BEM Elements
(17:27) BEM Elements with Modifiers
(18:54) BEM helps keep specificity aligned
⚙ Web Dev Tools:
🔗 Chrome Browser: www.google.com/chrome/
🔗 Visual Studio Code (VS Code): code.visualstudio.com/
🔗 Live Server VS Code Extension: marketplace.visualstudio.com/...
🔗 W3C CSS Validator: jigsaw.w3.org/css-validator/
🔗 Specificity Calculator: specificity.keegan.st/
🔗 CanIUse.com: caniuse.com/
📚 References:
🔗 MDN CSS Selectors: developer.mozilla.org/en-US/d...
🔗 MDN - How to Apply Colors to HTML Elements with CSS: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Values and Units: developer.mozilla.org/en-US/d...
🔗 MDN - The Box Model: developer.mozilla.org/en-US/d...
🔗 MDN - Styling Lists: developer.mozilla.org/en-US/d...
🔗 MDN - Display Property: developer.mozilla.org/en-US/d...
🔗 MDN - Floats: developer.mozilla.org/en-US/d...
🔗 MDN - Columns: developer.mozilla.org/en-US/d...
🔗 MDN - Margin Collapsing: developer.mozilla.org/en-US/d...
🔗 MDN - White-Space: developer.mozilla.org/en-US/d...
🔗 MDN - Positioning: developer.mozilla.org/en-US/d...
🔗 MDN - Flexbox: developer.mozilla.org/en-US/d...
🔗 MDN - Basic Concepts of Grid Layout: developer.mozilla.org/en-US/d...
🔗 MDN - Grid Template Areas: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Images: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Background Images: developer.mozilla.org/en-US/d...
🔗 Chip Cullen - Article on Content Layout Shift: chipcullen.com/what-width-and...
🔗 MDN - CSS Media Queries: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Pseudo-Classes and Pseudo-Elements: developer.mozilla.org/en-US/d...
🔗 MDN - List of CSS Pseudo-Classes: developer.mozilla.org/en-US/d...
🔗 MDN - List of CSS Pseudo-Elements: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Custom Properties (Variables): developer.mozilla.org/en-US/d...
🔗 MDN - CSS Functions: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Transform: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Transitions: developer.mozilla.org/en-US/d...
🔗 MDN - CSS Animations: developer.mozilla.org/en-US/d...
🔗 MDN - Organizing Your CSS: developer.mozilla.org/en-US/d...
🔗 Scott O'Hara - Organizing CSS for Everyone: modernweb.com/ordering-css/
🔗 Get BEM - Introduction: getbem.com/introduction/
✅ Follow Me:
Github: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: yesdavidgray.com
Reddit: / daveoneleven
Was this tutorial about how to organize your CSS and beginners BEM tutorial helpful? If so, please share. Let me know your thoughts in the comments.
#css #organize #bem

Опубликовано:

 

8 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
When you work on a small project, you might not give much thought to organizing your CSS - but it can get out of hand and become messy quickly! This tutorial provides some suggestions for organizing your CSS in both large and small projects as well as introducing the BEM naming convention methodology that is widely used. If you are just starting with CSS, I recommend going to the beginning of the CSS for Beginners playlist here: ru-vid.com/group/PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit
@eliasvasques80
@eliasvasques80 11 месяцев назад
At least for me, your tutorials are the clearest of all, and I watch a lot. very good you are a great teacher
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
Thank you!
@saarza9991
@saarza9991 10 месяцев назад
Sir as I approach the end of this beautifully taught tutorial of css, I must admit, I've never seen someone teach with such enthusiasm. When you talk, I feel someone pats on my back and even though this is remote learning, I'm able to understand the concepts and realise that all this you have taught comes from your industry experience. Great playlist. Extremely good, top notch You've made my life. I have no words ❤ love to you and your family thanks a lot once again 🙂
@Robin-os1os
@Robin-os1os 7 месяцев назад
Thank you so much for clearing my doubts
@hiwayshoes
@hiwayshoes Год назад
Thanks so much, Dave, this organization is ever so helpful… Cheers 💖!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Glad to hear that! 💯
@pavlinapsarsky2819
@pavlinapsarsky2819 Год назад
Another great tutorial, thank you very much! Very helpful for me.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're very welcome! 💯
@craig-scott
@craig-scott Год назад
Thanks a lot, Dave!! Another great one :)
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome, Craig! 💯
@marmoh7440
@marmoh7440 Год назад
Most underrated yt channel! I found this channel while I was looking for access/refresh token examples for node. It was awesome! Unfortunately he is a react user and I use Vue…. whatever, keep up your good work!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thank you, Mar! 💯
@verydifferentthought
@verydifferentthought Год назад
These organizing CSS serie was one of the helpful also writing variables. Bcz basic courses don't teach these! Thank u Dave!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're very welcome!
@kabagambedaniel2468
@kabagambedaniel2468 Год назад
i love your tutorials,they have helped me alot
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Happy to hear that! 💯
@NedumEze
@NedumEze Год назад
Dave, you're always forcing changes, positive changes to my coding. I've been a BEM CSS addict. But, CONSTANT-style variable names and organization were unknown. Thanks again Dave. But, more work for your Buddy.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Glad to hear that, Adolf! Keep making progress! 🚀
@romelmahmud9507
@romelmahmud9507 Год назад
Thank you great tutorial, waiting for your Project
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Coming soon!
@wishmeheaven
@wishmeheaven 10 месяцев назад
A true champ.
@mostafagmal6196
@mostafagmal6196 Год назад
thank you so much 😁😁
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're very welcome!
@DenisGloba
@DenisGloba Год назад
very helpful video Thanks
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Glad it was helpful!
@AliLearning
@AliLearning 4 месяца назад
Man first of all really thanks for all this content! and second can you tell which Vs Code Theme you use?
@carolineanderson4512
@carolineanderson4512 11 месяцев назад
You're awesome!!!!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
Thank you!
@7doors847
@7doors847 Год назад
Top Tut!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thank you!
@Pareshbpatel
@Pareshbpatel Год назад
A great tutorial on organising one's CSS use BEM - Block Element Modifiers. Thanks, Dave. {2022-07-05}
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome, Paresh! 🙏
@SHARMATUSHAR1_
@SHARMATUSHAR1_ 8 месяцев назад
Question: Thoughts on using BEM with tailwindCSS? BEM seems really cool but I think it can only be used when we are working with normal css. So, it's just like a coding practice to follow. Like a convention. So, I don't think it is possible to use it when working with css libraries. Definitely makes code much more readable when working with normal css though.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 8 месяцев назад
Yeah, it is for writing your own CSS and doesn't apply to Tailwind.
@alalyrealestate1136
@alalyrealestate1136 Год назад
Thank you very much for all your videos and educational materials. I want your advise in which track to take as a backend; the easiest and fast to learn, (PHP + mysql), or (nodejs + mongodb). and again thank you for all your efforts and time.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome! If you already know JavaScript, I believe you will find Node.js will be easier to learn.
@groovebird812
@groovebird812 Год назад
Hi, great video. I would not use header__nav, because header is a component and also the navigation. In the header i would use something like main-navigation
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thank you! The names and organization are up to you, but do understand that a class name like main-nav doesn't follow the BEM examples.
@groovebird812
@groovebird812 Год назад
@@DaveGrayTeachesCode you are right. But i could open a new block navigation within the header and then make a navigation__list and navigation__item.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
@@groovebird812 absolutely. This is like the btn class example I gave. 💯🚀
@t.rinity.
@t.rinity. Год назад
Awesome! 👍 by the way, any chance you can do a video on security on the backend. Im using mern! ❤❤❤
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thank you! 🙏 There is a lot of security in my Node.js for Beginners course which covers Node.js, Express, and MongoDB (the backend of MERN). It discusses CORS, JWT authentication, the difference between authentication and authorization, and handling user roles: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-f2EqECiTBL8.html
@t.rinity.
@t.rinity. Год назад
@@DaveGrayTeachesCode thank you!! 🤗☺
@shineLouisShine
@shineLouisShine Год назад
Thank you very much for everything A couple of questions: 19:55 - Is it "Even" as - Despite, or is it "Even" as - Not odd..? 00:27 - What "Final Project"..? 👀
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
19:55 - maybe I should have said "equal". Specificity is a number. There is a link to the specificity calculator in the description and course resources, too. 00:27 - as in "before the final project" - which means it is coming in the next video - and that was just released today! 🚀
@luisguillermofigueroaherna5741
What do you think about apply all of this video topics but using only tailwind. For example, creating bem naming but using tailwind applying css with @apply ... Of tailwind?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
I think it is important to understand CSS fundamentals and then you can move on to any library or framework like Bootstrap or Tailwind that you want to try out.
@regilearn2138
@regilearn2138 Год назад
Hi Dave,recenlty i get task that they need to use next js with next-auth,mongodb and express,their need is to login with email and password with jwt token and ,login with oAuth(google) and Autho,with these 3 login method with next -auth,would appriciate if you can do a video for this.so once user register with email and password he should able to login to the system with used email(oauth) and also with Autho,Please consider this,if you can use typescript that would be great.using next-auth
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thanks for the request, Regi. 🙏
@user-bd5pk5ef9y
@user-bd5pk5ef9y 5 месяцев назад
What I;m seeing instead to use double Class...why don't give the attributes to the element and them use the class to increase the attributes?
@bama2619
@bama2619 6 месяцев назад
i need to rewatch. i did not catch BEM, i saw BME.
Далее
CSS Complete Project for Beginners
2:11:35
Просмотров 21 тыс.
Improve your CSS by organizing your properties
10:19
Просмотров 54 тыс.
Fried egg salad sandwich 🥪 #shorts
00:20
Просмотров 3,1 млн
who??? I do not know him #learnfromkhaby #comedy
00:44
Learn CSS BEM (and avoid these common mistakes)
15:36
Просмотров 3,8 тыс.
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 390 тыс.
7 ways to deal with CSS
6:23
Просмотров 1 млн
Fried egg salad sandwich 🥪 #shorts
00:20
Просмотров 3,1 млн