5 Modern CSS Features You Should Know In 2024

Sdílet
Vložit
  • čas přidán 23. 01. 2024
  • :has() Selector, Container Queries, CSS Nesting, text-wrap:balance And :focus-visible - Quick & Easy Examples.
    🗞️ Blog Post
    academind.com/tutorials/5-mod...
    🖥️ Official Website & Courses
    academind.com/courses/
    💬 Academind Community
    academind.com/community
    👋 Social Media
    / maxedapps
    / academind_real
    / academind_real
    / academindchannel
    / maximilian-schwarzmueller
    / manuel-lorenz-808b5185
    / academind-gmbh
    / academind-pro
    / academind_real
    📝 Further Resources
    Description: LINK

Komentáře • 65

  • @nickyn1083
    @nickyn1083 Před 4 měsíci +46

    0:01 Psuedo-selector :has()
    1:24 Container Queries
    3:30 CSS Nesting
    4:15 Text-wrap balance
    4:51 :focus-visible

  • @nitram_nosnibor
    @nitram_nosnibor Před 2 měsíci

    Superb short and sweet, I'll be using most of these now - thanks!!

  • @Alcaatraz01
    @Alcaatraz01 Před 4 měsíci +2

    Great video. Thanks!

  • @marcosgonzales2007
    @marcosgonzales2007 Před 19 dny

    Thanks for the tips!

  • @Razax7
    @Razax7 Před 2 měsíci

    Thank you! These CSS features are amazing and you explained them extremely well.

  • @oyeibrahim
    @oyeibrahim Před 4 měsíci +1

    This is dope!

  • @js3671
    @js3671 Před 2 měsíci

    The first tip helped me fix a bug on my page thank you!

  • @ekchills6948
    @ekchills6948 Před 4 měsíci +1

    Tysm

  • @farruhzoirov871
    @farruhzoirov871 Před 4 měsíci +1

    Great!

  • @lasindunuwanga5292
    @lasindunuwanga5292 Před 4 měsíci +1

    thanks

  • @prajwalkasar1309
    @prajwalkasar1309 Před 4 měsíci +1

    Great 👍

  • @r31vlogs
    @r31vlogs Před 4 měsíci +2

    Sir please make a series of MERN Stack web development from beginner to advance.....Where you teach everything as full stack and make some responsive projects.

  • @Htbaa
    @Htbaa Před 3 měsíci +2

    CSS nesting requires the &-nesting selector when using elements e.g. `.something { & input {} }` but not for class selectors e.g. `.something { .else {} }`

  • @hcx1853
    @hcx1853 Před 4 měsíci +27

    1. :has pseudo-selector
    2. Container queries
    3. CSS nesting
    4. text-wrap: balance
    5. :focus-visible

  • @deatho0ne587
    @deatho0ne587 Před 4 měsíci +2

    Best part about text-wrap balance it is just a progressive enhancement. Meaning if it does not work your site will not 100% look different.
    Unlike some of the other stuff you meantioned.

  • @SuyashKrishnaDas108
    @SuyashKrishnaDas108 Před 4 měsíci +4

    CSS Nesting!
    Finally!

    • @NoName-1337
      @NoName-1337 Před 4 měsíci +1

      The syntax is a little bit odd. In my opinion they should implement a scss/sass/less style of nesting. The current one is very odd.

    • @dev_Ahmed_Samy
      @dev_Ahmed_Samy Před 4 měsíci

      Finally 🥳

    • @krunalpatel2228
      @krunalpatel2228 Před 3 měsíci

      @@NoName-1337 not sure what you mean. As per the video, nesting is the same as in less/scss. I am missing something here?

  • @OCEMTechZone
    @OCEMTechZone Před 4 měsíci

    Great

  • @troyharris279
    @troyharris279 Před 4 měsíci +1

    Not bad at all! I'll give these a try for my next upcoming project!

  • @mooo2146
    @mooo2146 Před 4 měsíci +2

    Hi max

  • @user-zu2tc6tw6b
    @user-zu2tc6tw6b Před 4 měsíci

    1. Focus-within

  • @anujababy1651
    @anujababy1651 Před 4 měsíci

    👍

  • @simpingsyndrome
    @simpingsyndrome Před 4 měsíci +1

    it's been a years i've never slicing UI using vanilla CSS since Tailwind came out.

  • @oaooaoipip2238
    @oaooaoipip2238 Před 4 měsíci

    So whats the difference between the selector "ul li input {mycode}" and "ul li:has(input){mycode}". Isn't it the same thing?

    • @mostafaalayesh2803
      @mostafaalayesh2803 Před 4 měsíci +1

      Not the same, the first one will apply the style on the input, while the other one will apply the style on the 'li' block

    • @oaooaoipip2238
      @oaooaoipip2238 Před 4 měsíci +1

      @@mostafaalayesh2803 you are right 👍🙂

  • @sipocharles9180
    @sipocharles9180 Před 4 měsíci +2

    First 😎

  • @simonswiss
    @simonswiss Před 4 měsíci

    Is that audio generated with AI or something like Descript? I have watched your videos for years and this one sounds very very weird 😅

  • @aamirshekh934
    @aamirshekh934 Před 4 měsíci +2

    in css udemy course, it would be great if you add tailwind css section.

  • @oldegreg6274
    @oldegreg6274 Před 4 měsíci +3

    Thank you for a well structured informative video

  • @sujanbasnet7868
    @sujanbasnet7868 Před 4 měsíci +3

    focus-visible has been well supported for a while.

  • @rafalka7084
    @rafalka7084 Před 4 měsíci

    third

  • @quangpn
    @quangpn Před 4 měsíci +1

    `has()` is supported in Firefox since last December (2023). I'm wondering how we can do it for older version.

    • @acubley
      @acubley Před 4 měsíci +1

      Is it out from behind a flag now?

    • @acubley
      @acubley Před 4 měsíci +1

      Never mind, CanIUse says 121 and newer.

    • @quangpn
      @quangpn Před 4 měsíci +1

      @@acubley Yeah that's where I got that information

  • @ridl27
    @ridl27 Před 4 měsíci

    bruh, browser support for the text-wrap: balance is 66%.

    • @user-ef1di8yl8c
      @user-ef1di8yl8c Před 3 měsíci

      doesn't matter since it won't break anything. If it's not supported it just looks like there is no property set at all.

  • @MeatCatCheesyBlaster
    @MeatCatCheesyBlaster Před 4 měsíci

    Are you using AI to do your voice now?

  • @bigitel
    @bigitel Před 4 měsíci +24

    His Voice is with AI?

    • @FunkyToe369
      @FunkyToe369 Před 4 měsíci +6

      Yeah it sounds weird to me, idk

    • @menelikwilliams7504
      @menelikwilliams7504 Před 4 měsíci +2

      No he's real... check out his videos. Maybe it's his German accent??

    • @StephenRayner
      @StephenRayner Před 4 měsíci +2

      Impossible to tell now (by ear)

    • @menelikwilliams7504
      @menelikwilliams7504 Před 4 měsíci +2

      ​@StephenRayner, what a time to be alive, loooool

    • @andrewbrower4158
      @andrewbrower4158 Před 4 měsíci +2

      I was just watching some older Max earlier today and I agree, this is not his regular voice

  • @sivaprasad905
    @sivaprasad905 Před 4 měsíci

    No end to frontend crap lol😂

  • @nested9301
    @nested9301 Před 4 měsíci

    web dev is dead get a life

  • @willberg8599
    @willberg8599 Před 4 měsíci

    Ew. This is why we use frameworks 😂

    • @saifurrahman6972
      @saifurrahman6972 Před 4 měsíci +2

      Stills it's good to know some fundamental

    • @selectorsaurus
      @selectorsaurus Před 4 měsíci +3

      No, this is why we don't need to use frameworks.

    • @quangpn
      @quangpn Před 4 měsíci

      I think it depends on which type project you're doing with

    • @user-ef1di8yl8c
      @user-ef1di8yl8c Před 3 měsíci

      most frameworks suck and behave like writing inline styles. it's all fun until a redesign

  • @rishiraj2548
    @rishiraj2548 Před 4 měsíci

    👍