Learn CSS Nesting in 4 Minutes (Pros & Cons)

  Рет қаралды 7,307

Coding2GO

Coding2GO

Күн бұрын

Пікірлер: 29
@cleisiq.frontend
@cleisiq.frontend 8 күн бұрын
I'm using CSS nesting and it's awesome.
@ChristianRebelsky
@ChristianRebelsky 6 күн бұрын
CSS nesting is great! It would be helpful to mention naming strategies like BEM, where nesting really shines. Additionally, the comment about PostCSS is somewhat misleading. While nesting is beneficial for developer experience, I prefer not to use it in production. In my opinion, minified and unglified styles are still the best approach.
@RASTUDIO_0
@RASTUDIO_0 8 күн бұрын
Vote for Full Stack Web Development course from this Guy!
@AbdulRahman-yp6oy
@AbdulRahman-yp6oy 8 күн бұрын
Absolutely ❤❤❤
@RobbPage
@RobbPage 8 күн бұрын
as long as it's not typescript i'll watch.
@youarethecssformyhtml
@youarethecssformyhtml 7 күн бұрын
​@@RobbPage TypeScript is becoming the standard in the industry. You have to learn it. Also it's easy
@RobbPage
@RobbPage 7 күн бұрын
​@@youarethecssformyhtml of course it's easy. i didn't say i don't KNOW typescript, i just refuse to use it because it's yet another symptom of "modern" devs laziness and lack of skill/knowledge. typescript is a crutch for lazy unskilled devs. real devs don't need it.
@youarethecssformyhtml
@youarethecssformyhtml 7 күн бұрын
@@RobbPage that's a hot take. There's a reason why people use statically typed languages like C#, Java, Go, Rust, Kotlin.... They make the code more readable than dynamically typed languages, eliminates a whole class of bugs because of wrong types and null's, and make the code maintainable. You can use JSDocs but they're so annoying to type and make the code look ugly. I don't know how TS have made developers lazy. It literally reminds to check against undefined and null and it makes the code more readable with types and interfaces. It's stupid to say real developers don't need it. You're just making your life harder for absolutely no good reason.
@PicSta
@PicSta 8 күн бұрын
I love CSS nesting and I use it on a daily basis. I don't see the same cons, as mentioned in the video. Furthermore, I use nesting for my header, main, footer and components separately. This way you keep it clear to read and know where to start changing things. Complex selectors I like to outsource or write at the bottom of a CSS block.
@Cahnisama
@Cahnisama Күн бұрын
If I have a very nested structure and I want to change 1 of those very nested classes in a media query, it makes for very awkward syntax. You can't just select the class, you need to select the entire nested tree to apply the changes. Nowadays I only use nesting on pseudo selectors and sudo elements
@TheKuzuri
@TheKuzuri 7 күн бұрын
love this channel
@tortue34170
@tortue34170 7 күн бұрын
Use Angular with Scss. You can enjoy the nested css, embrace the pros, ignore the cons, and it will be compiled into standard css on build, so you don't need to care about the old browsers used by your final users 😉
@henokr.1016
@henokr.1016 8 күн бұрын
It's awesome. I like it, specially when you have many components in one single css file like Header, Footer, different Sections...
@omaarshek4123
@omaarshek4123 6 күн бұрын
Please, what is your workflow for recording and editing your videos
@chesterxp508
@chesterxp508 6 күн бұрын
GoodJob!
@unknown775
@unknown775 8 күн бұрын
I stop coding a year now and i try it again
@gyanart
@gyanart 7 күн бұрын
Hi Coding2go, I have a CSS challenge that I haven’t been able to solve and would love your help! I’m working with a fixed div at the top of the page that doesn’t scroll when the page scrolls (as expected). However, the div contains a background image, and I want the background image itself to scroll along with the page, while keeping the div fixed. I’ve tried multiple approaches but haven’t found a solution that works. I believe this could be an interesting and helpful topic for many viewers, so it would be amazing if you could create a video to explain how to achieve this effect. Looking forward to your thoughts and a potential solution! Thank you! 😊
@giorgosd3624
@giorgosd3624 7 күн бұрын
Im not entirely sure but maybe you are looking for background-attachment css property
@Aakash2005-ch7fj
@Aakash2005-ch7fj 8 күн бұрын
Kindly put a Next js
@LV4EVR
@LV4EVR 8 күн бұрын
*All us SASS people...* Ughhhh, those curly braces, semicolons, and extra lines ... _why in the world would you use them?!_ SASS, ftw. 😜
@NoNeedForRandomNumbers
@NoNeedForRandomNumbers 6 күн бұрын
Nesting for breath, not nesting for depth
@RobbPage
@RobbPage 8 күн бұрын
i'd argue that nesting to GET that specificity can also be useful. i use both simultaneously, depending on the situation but honestly it usually comes down to my mood at the time and how i feel about the "look" of my code. it's not uncommon for me to waste an hour restructuring my code simply because i don't like the way it looks.
@monikossa9964
@monikossa9964 7 күн бұрын
Nesting is updated. U haven't use & all time
@cemondel
@cemondel 6 күн бұрын
no ty
@gokulkkd
@gokulkkd 3 күн бұрын
Write standard css as fast as u can then put into ChatGPT and ask convert to nesting... Simple right 😂
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Coding2GO
Рет қаралды 288 М.
Avoid THESE 5 JavaScript Beginner MISTAKES
6:27
Coding2GO
Рет қаралды 42 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 30 МЛН
The CSS Display Property is Changing Forever
15:20
Web Dev Simplified
Рет қаралды 64 М.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Coding2GO
Рет қаралды 108 М.
Each Media Query in CSS You MUST Know
4:47
IFace
Рет қаралды 2,8 М.
Stop using position absolute - use CSS Grid stacking!
4:42
Learn CSS ::before and ::after in 4 Minutes
3:57
Coding2GO
Рет қаралды 215 М.
I'm Ditching Try/Catch for Good!
10:29
Web Dev Simplified
Рет қаралды 187 М.
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 705 М.
Build Navbar Menus That Actually Work for Everyone
17:07
Coding2GO
Рет қаралды 9 М.
Learn CSS display property in 4 minutes! 🧱
4:13
Bro Code
Рет қаралды 92 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН