You can use Emmet with CSS!

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • My video on Emmet for HTML: • Use Emmet to up your H...
    Emmet is awesome, and I use it for my HTML all the time. When I put up my Emmet video, a lot of commenters mentioned that we can use it for CSS too. I've known about it, but I haven't used it a ton... but the more I play with it, the more I like it!
    The only drawback is there are a lot of properties to remember new shortcuts for!
    Emmet's cheatsheet... use find for what you're looking for, there is a lot 😅 docs.emmet.io/...
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    ---
    Keep up to date with everything I'm up to
    ✉ www.kevinpowel...
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowel...
    👕 Buy a shirt: teespring.com/...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstu...
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my TH-cam channel, make sure to follow me on Instagram and Twitter.
    Instagram: / kevinpowell.co
    Twitter: / kevinjpowell
    Codepen: codepen.io/kev...
    Github: github.com/kev...
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

ความคิดเห็น • 301

  • @HorizonHuntxr
    @HorizonHuntxr 3 ปีที่แล้ว +152

    My CSS Professor has blessed me yet again.

    • @dewdop
      @dewdop 3 ปีที่แล้ว +1

      Kevin Powell is a high quality sub for sure.

  • @paulduhard6756
    @paulduhard6756 3 ปีที่แล้ว +157

    at 3:00 you can shorten it to "m0-a" it will translate to "margin: 0 auto;" as well 👍🏼

    • @abe10
      @abe10 3 ปีที่แล้ว +1

      Cool!

    • @theprometheusalpha
      @theprometheusalpha 3 ปีที่แล้ว +1

      @@Steel0079 Ctrl + movement keys

  • @noclistify
    @noclistify 3 ปีที่แล้ว +47

    I love this, didn't know it existed for CSS as well

  • @EmSixTeen
    @EmSixTeen 3 ปีที่แล้ว +58

    You really do churn out a lot of useful content at a rapid pace. Always good.

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว +8

      Thanks, glad you're enjoying it all!

    • @Steel0079
      @Steel0079 3 ปีที่แล้ว

      @@KevinPowell At 5:45, you moved the cursor instantly to the start of the word "black", before deleting "#". It didn't look like it was a mouse movement. Is there a shortcut for doing that?

    • @abhishek.rathore
      @abhishek.rathore 3 ปีที่แล้ว +3

      @@Steel0079 if you hold ctrl and use arrow keys, the cursor moves a word (or token) at a time. So ctrl + left arrow is what he did to get to the start of the word. This works with backspace and delete too, so to delete a word press ctrl + backspace.

  • @chooks2228
    @chooks2228 3 ปีที่แล้ว +23

    at 6:07 that's called trigger suggest and in vscode you can press ctrl+space (or command+space in mac) to bring it up without having to hit backspace
    it's not only for emmet snippets it also works for just about anything with intellisense

  • @soulextracter
    @soulextracter 3 ปีที่แล้ว +36

    Every time I hear Emmet, I think of Dr. Emmet Brown a.k.a. Doc from Back to the Future!

    • @phantom_d14
      @phantom_d14 3 ปีที่แล้ว +1

      jajaj me too

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว +9

      And thanks to reading that, I probably will too 😅

    • @noah-4482
      @noah-4482 3 ปีที่แล้ว

      I believe thats who its named after

    • @ToycarsaddictDaily
      @ToycarsaddictDaily 3 ปีที่แล้ว +4

      "GREAT SCOTT!!"😯

    • @zinedinhadzajlija6225
      @zinedinhadzajlija6225 3 ปีที่แล้ว

      Wow, I think of Emmet, the firearm guy from Gta SA, lmaoo

  • @astrit
    @astrit 3 ปีที่แล้ว +4

    Hands down Emmet has changed this game since it came , i remember using it on sublimetext and never going back since.
    As usual great content, keep it up.

  • @mdyarafat581
    @mdyarafat581 3 ปีที่แล้ว +10

    Hey...
    I'm from Bangladesh right now I am learning JavaScript...
    my Facebook Nigerian friend is learning css. I suggested him to follow your channel for CSS. You are the CSS king.

  • @colettemr
    @colettemr 5 หลายเดือนก่อน

    As a hand coded I have been using it mainly for table setups for data. Now I will use it more often for standard styles. Thanks soo much!

  • @dominiquebello3212
    @dominiquebello3212 3 ปีที่แล้ว +1

    Already using emmet on css, the multiple line trick and the shortcut for fxd:c are new for me 😲 Soooo coool 🤩 Thanks

  • @michaellarocca1435
    @michaellarocca1435 3 ปีที่แล้ว +1

    This is awesome! I did not now about this, and the cheat sheet is included!
    Thank you again Kevin for continually providing the web dev community with premium content!

  • @niilaryeaquartey-papafio1940
    @niilaryeaquartey-papafio1940 3 ปีที่แล้ว +3

    Never knew the "+" was there to combine multiple properties. Always did them one at a time. Thank you Kevin❤

    • @windubitably
      @windubitably 2 ปีที่แล้ว

      Same. Ironically, it takes longer to connect them all. Each property would need its own tab/enter keystroke, but with combining, we need to press “shift” and “+”, plus the final tab/enter.

  • @CynthiaSotoCaballerolYEAHl
    @CynthiaSotoCaballerolYEAHl 3 ปีที่แล้ว

    I didn't know about this. So happy to wach your video. I'm gonna try to include it from now (because sometimes the hand already is moving automatically when typing css). Thank you Kevin

  • @footballversus2203
    @footballversus2203 3 ปีที่แล้ว

    Bro, You changed my life!! I've been used the intellisence to type the props faster for so long, but now it comes to my mind to use it like that. Thank you! Keep going

  • @nziokaaustin
    @nziokaaustin 2 ปีที่แล้ว

    this will definitely speed up my work flow. thanks Kevin 🎉

  • @bobdinitto
    @bobdinitto 2 ปีที่แล้ว

    When I saw you do that first m0, Kevin, I had to immediately stop the video, pop open VSCode, and try it. And then scream: "OMG! IT'S BEEN HERE THE WHOLE TIME!!!!" So... thanks for the epiphany! I'll definitely be using this.

  • @adityamallik3298
    @adityamallik3298 3 ปีที่แล้ว

    I HAVE to start using emmet now, I never thought it would have this much power!

  • @marcosarg1
    @marcosarg1 3 ปีที่แล้ว

    I am starting on this journey at 48 years old, totally a newbie. This little shorcuts are wonderful for me! Thanks so much!

  • @mohan9285
    @mohan9285 3 ปีที่แล้ว

    Awesome :) I got many here. I was not thinking about Emmet but was already using it for many css properties. Now will play around it and have lots of fun. Cheers. Thanks Kevin.

  • @aCitizenJOSerased
    @aCitizenJOSerased 3 ปีที่แล้ว +2

    I didn't know it existed for CSS as well! I'm gonna give it a try. Thanks again!

  • @blender_tommy
    @blender_tommy 3 ปีที่แล้ว

    Thanks, if it wasn't because of this video it wouldn't have clicked...been using Emmet by accident whilst coding SCSS with basic stuff like m0 or p0 but I never got to make the connection.
    This opens up a load of possibilities.

  • @EmoryFlame
    @EmoryFlame 3 ปีที่แล้ว

    This blew my mind. Don't ever stop making these videos!

  • @PatrickDucat
    @PatrickDucat 3 ปีที่แล้ว

    I never even considered that Emmett might work with CSS. Going to try it out tonight. Thanks!

  • @shortflicks83
    @shortflicks83 12 วันที่ผ่านมา

    I am in web development from last 4 years and I don't know about it even I watch many tutorials work a lot on projects with css. Its Amazing

  • @gopalloharnew5948
    @gopalloharnew5948 2 ปีที่แล้ว +1

    I haven't seen Emmet with css but now ... I'm gonna User it !

  • @juanandreso2349
    @juanandreso2349 3 ปีที่แล้ว

    Didn't know about this but is so cool! Thanks again Kevin!!

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว

      Glad you liked the video 😃

  • @Lulu-xx5sn
    @Lulu-xx5sn 3 ปีที่แล้ว +2

    I didn't know this was possible, this is so useful

  • @celiafernandes9084
    @celiafernandes9084 ปีที่แล้ว

    Thanks Kevin Sir it was a informative tutorial it has taken my css to next level

  • @haythamkenway1561
    @haythamkenway1561 3 ปีที่แล้ว

    Jeez!!!! I didn't know that. Thank you. Super excited

  • @blonduose
    @blonduose 3 ปีที่แล้ว

    No, i haven't used it yet but I sure will from now on! Thank you so much, I think your videos and your responsive course has been the main reason I got good, or better and more comfortable with css (and scss).

  • @SahilRajput03
    @SahilRajput03 3 ปีที่แล้ว

    I have started using emmet from now onwards a lot!!

  • @naimurrahman9979
    @naimurrahman9979 3 ปีที่แล้ว +1

    Each video of your channel is a gem...

  • @mind_of_a_darkhorse
    @mind_of_a_darkhorse 3 ปีที่แล้ว

    I have used it a little on CSS, but I did not know you could combine them. Another helpful and awesome video!

  • @luiscolome75
    @luiscolome75 3 ปีที่แล้ว

    I?ve been using it but not in combination with the plus sign. That is just awesome. As always Thanks million for your work Kevin!

  • @Fullflexno
    @Fullflexno 2 ปีที่แล้ว

    Magic! Thanks alot, cheers from Norway!

  • @stormybear4986
    @stormybear4986 2 ปีที่แล้ว

    I'm definitely going to start using Emmet for both CSS ans HTML!

  • @okbtorn
    @okbtorn 3 ปีที่แล้ว

    Wow, this is awesome and will sure save me time. Didn't know emmet works with css even though I've been using some kind of shorthand without knowing the full potentials.

  • @SebastianZartner
    @SebastianZartner 3 ปีที่แล้ว

    I am using VSCode for quite some time now and I never realized the integration of Emmet and its potential. Thank you for pointing that out!

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว

      Glad you liked the video 😃

  • @dishantsharma8614
    @dishantsharma8614 3 ปีที่แล้ว

    This is so cool. I will start using this right away in my CSS styling. Thanks, Kevin. You're awesome :)

  • @NiceChange
    @NiceChange 2 ปีที่แล้ว

    Wow. Love this and will start using immediately. Thank you

  • @nareshdhondu7027
    @nareshdhondu7027 3 ปีที่แล้ว

    I used only m0, p0, & bgc before your video but now I will try this all emment

  • @amarg26
    @amarg26 3 ปีที่แล้ว +1

    Wonderful KP, Thanks for your kind work. 👍

  • @異世界おじさん-u1v
    @異世界おじさん-u1v 3 ปีที่แล้ว +6

    This is something you dont find in other Ytubers.

  • @EEQUALIZER
    @EEQUALIZER 3 ปีที่แล้ว

    Great. Didn't know about it. Another level up on my skills 🥰. Thanks Kevin!

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว

      Glad you liked the video 😃

  • @tassiaaccioly2355
    @tassiaaccioly2355 3 ปีที่แล้ว

    I didn't know there was emmet for CSS. I'm gonna start using it now! Thank you Kevin! I love your content!

  • @favouritejome
    @favouritejome 3 ปีที่แล้ว

    I've been using emmet with CSS but I guess not efficiently. Thanks for making this video, now I can use it efficiently

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว +1

      Thanks, glad you enjoyed it :D

  • @chineduknight6426
    @chineduknight6426 3 ปีที่แล้ว

    I didn't know of this, wow this really speeds up css. Thanks a love Kevin

  • @kelvinclark3474
    @kelvinclark3474 3 ปีที่แล้ว

    Wow thanks much, I've been thinking about it for sometime now.

  • @Landie
    @Landie 2 หลายเดือนก่อน

    only now finding this, awesome resource!! The only thing that grinds my gears a little is separating out properties isnt with a semicolon HAHA but i can live with the plus sign ❤

  • @Michael-Martell
    @Michael-Martell 2 ปีที่แล้ว

    Never knew about this! Looks wonderful! Thanks for sharing! A cheat sheet would be awesome!

  • @bjgjuiuguoojpoo
    @bjgjuiuguoojpoo 3 ปีที่แล้ว

    MORE THAN AWESOME! As usual I should add :) Thank you soooo much Kevin! I really Love Your tutorials!

  • @matthewjones81
    @matthewjones81 3 ปีที่แล้ว

    I'm falling in love with it too and your content! Thanks a million!

  • @ShadiMuhammad
    @ShadiMuhammad 3 ปีที่แล้ว

    You are AWESOME as usual Kev.
    Keep it up man. 👏

  • @alialmbaree868
    @alialmbaree868 3 ปีที่แล้ว

    Thank you so much, I didn't know about this, and I'll start using it right now 🌹

  • @iamsidd_j
    @iamsidd_j 3 ปีที่แล้ว +1

    There is something new you get to learn on this channel ❤️

  • @AH-cf9cv
    @AH-cf9cv 3 ปีที่แล้ว

    Hai kevin u always come with new strategy in css. Thanks

  • @djordjek3916
    @djordjek3916 3 ปีที่แล้ว

    This is gold! Thank you very much Kevin!

  • @urfteemo6136
    @urfteemo6136 3 ปีที่แล้ว

    I love all your videos and I've improved alot since I found this channel!

  • @BlurryBit
    @BlurryBit 3 ปีที่แล้ว +5

    That's interesting! I only used it for html. Thanks for the tip 👍😀

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว +1

      Glad you enjoyed it and welcome aboard!

  • @dancehalllyrics1303
    @dancehalllyrics1303 3 ปีที่แล้ว +3

    I have actually used some of these without even thinking about that it was Emmet doing its magic!

    • @mohan9285
      @mohan9285 3 ปีที่แล้ว +1

      Same thoughts here, I was no thinking about Emmet but using it for many css properties :)

    • @dancehalllyrics1303
      @dancehalllyrics1303 3 ปีที่แล้ว

      ​@@mohan9285, exactly! There's one place where I miss Emmet badly, and that is when writing HTML in template/object literals (whatever you prefer to call them) in JS.
      It simply doesn't work in VS Code, and I can't figure out why ...!

  • @Po4to
    @Po4to 3 ปีที่แล้ว

    That is so awesome! Wish there were something like that for SMIL - which I still prefer over CSS for its versatility, but oh boy is it superfluous.

  • @FredericChampion
    @FredericChampion 3 ปีที่แล้ว +10

    VScode was already ok with "fuzzy" writing.
    For exemple :
    "mgn" / "margn" / ""marg"… for margin
    "pddin" for padding
    "pdnrg" was doing padding right
    So when I write very quickly on CSS I don't take to much attention about the exact wording… It's faster than learning exact emmet, but sometime VSCode doesn't understand my very weird writing :p

    • @KevinPowell
      @KevinPowell  3 ปีที่แล้ว +6

      Yeah, I totally agree. The only thing that drives me bananas with the VS Code auto-complete with CSS is it adds the semi-colon. Which, yup, I get, but then it would be great it if worked like quotes where, when it adds the closing quote, if you pushed the key for it, it jumps to the other side... with the semi-colon it just adds a second one :\

    • @HorizonHuntxr
      @HorizonHuntxr 3 ปีที่แล้ว +1

      @@KevinPowell yesssss that is sooooo annoying lol, I thought it was just me

    • @okidokiyowyow356
      @okidokiyowyow356 3 ปีที่แล้ว

      I do this. If its two word. I use marbot = margin-bottom. padbot = padding bot. I just use keyword.

    • @FredericChampion
      @FredericChampion 3 ปีที่แล้ว

      @@KevinPowell same frustration about automatic semicolon

    • @morrisalanisette9067
      @morrisalanisette9067 3 ปีที่แล้ว

      @@KevinPowell I assign cmd + spacebar for the 'right' key using an app on my mac to make it easier getting around semi-colons and stuff. Because I hate using the arrow keys on a macbook

  • @Soldat.du.christ1
    @Soldat.du.christ1 3 ปีที่แล้ว

    😲😲 Oh My Code !
    I begin to undestand more and more why You are THE KING OF CSS.

  • @chhavimanichoubey9437
    @chhavimanichoubey9437 3 ปีที่แล้ว

    im definitely gonna use emmet for usual codes

  • @gobideveloper111
    @gobideveloper111 3 ปีที่แล้ว

    Wow, it's totally amazing and super fast.

  • @Yukitocyborg
    @Yukitocyborg 2 ปีที่แล้ว

    Really good!
    I've used it before but not for multiple properties, that will be helpful

  • @joeldcanfield_spinhead
    @joeldcanfield_spinhead 3 ปีที่แล้ว +3

    Huh. Never thought of it for CSS. D'oh. I am all over this.

  • @guillermoandradaFSD
    @guillermoandradaFSD 3 ปีที่แล้ว

    Just amazing! Thank you so much... I loved that video.

  •  3 ปีที่แล้ว +1

    The king, very useful

  • @codetech3711
    @codetech3711 3 ปีที่แล้ว

    This is life changing for me, thanks!

  • @dreamseeker3721
    @dreamseeker3721 2 ปีที่แล้ว

    Le Dieu du CSS frappe encore. Merci de nous avoir envoyé Kevin Powell. 🕊️🕊️

  • @haldx
    @haldx 3 ปีที่แล้ว +1

    Been using emmett for single properties, was not aware of the + feature.

  • @bogdan.p
    @bogdan.p 3 ปีที่แล้ว

    I knew we have emmet in HTML but not in CSS, that's awesome!

  • @EagerEggplant
    @EagerEggplant 3 ปีที่แล้ว

    You are literally carrying me in CSS. I am such a better CSS writer because of your videos! Thank you!

  • @nikhilmwarrier7948
    @nikhilmwarrier7948 3 ปีที่แล้ว

    Exactly what I wanted! Thanks!

  • @676005ga
    @676005ga 3 ปีที่แล้ว

    I thought I was clever to get margin: 0 auto by doing m0 ← space auto until I saw this. Thanks, Kevin!

  • @arung007
    @arung007 2 ปีที่แล้ว

    Not tried so far css, interesting, i wil start using it

  • @asgharalisindhu8548
    @asgharalisindhu8548 ปีที่แล้ว

    This is my first ever comment. You are wonderful. It increased my speed of coding html and css

  • @surajitdas6555
    @surajitdas6555 3 ปีที่แล้ว

    I use it from past one year... But dont use for multiple lines... And my current ranking in cssbattle is 32 😀
    Thanks to you and Kyle for inspiring us...

  • @asifiqbal3831
    @asifiqbal3831 3 ปีที่แล้ว

    Really glad to know

  • @carolmckay5152
    @carolmckay5152 3 ปีที่แล้ว

    I use it, but in a learn as I go hit and miss kind of way, thanks for making emmet for css more opaque for me Kevin :heart:

  • @farid.dev1
    @farid.dev1 3 ปีที่แล้ว

    Great stuff, thank you!

  • @jovitakakia814
    @jovitakakia814 3 ปีที่แล้ว

    CAnt stop learning, you are just the best at making me learn.

  • @ganesan.r5430
    @ganesan.r5430 2 ปีที่แล้ว

    As like as all your videos, Informative and useful.

  • @MatthaisUK
    @MatthaisUK 3 ปีที่แล้ว

    Was totally unaware emmet was available for CSS - don't know how. Cheers for the heads up

  • @AutsajderRR
    @AutsajderRR 3 ปีที่แล้ว

    wow, nice to know this! m10-a works as well :)

  • @aggelikipapageorgiou5003
    @aggelikipapageorgiou5003 3 ปีที่แล้ว

    Awesome man, thanks!!

  • @AliJanahi-ki9lq
    @AliJanahi-ki9lq ปีที่แล้ว

    i love it , thank you so much

  • @shashankagrawal5908
    @shashankagrawal5908 3 ปีที่แล้ว

    I didn't knew that I can use Emmet for CSS. Well thanks for the video. Now I can write CSS 2x faster

  •  3 ปีที่แล้ว

    thanks for great content Kevin!

  • @hashaama
    @hashaama 3 ปีที่แล้ว

    amazing stuff as usual!!

  • @roysupriyo10
    @roysupriyo10 3 ปีที่แล้ว

    kevin's mom whenever he makes her mad: hey kevin, say specificity, or else i'll beat you up

  • @r-i-ch
    @r-i-ch 3 ปีที่แล้ว +1

    Ahjeez. Here comes a whole new absurd syntax for me to learn. I know it's optional, but like HTML-Emmet, damn that's way faster.

  • @VladimirMarkovic
    @VladimirMarkovic 3 ปีที่แล้ว

    Interesting stuff, as always

  • @AJD...
    @AJD... 3 ปีที่แล้ว

    This is really really cool. But more often then not you don't really know all of the properties you want for a declaration. You gradually build up to it.
    But other than that, single property short cuts are amazing!

  • @StarryTaales
    @StarryTaales 3 ปีที่แล้ว

    Till Now, I didn't know that emmet existed for CSS

  • @welling1
    @welling1 3 ปีที่แล้ว

    I had no idea!

  • @ishtiakahmed2610
    @ishtiakahmed2610 3 ปีที่แล้ว

    These are super awesome. Thanks a lot. May The Almighty bless you.

  • @mh_kohansal
    @mh_kohansal 3 ปีที่แล้ว

    ty man, it's very useful for me

  • @support2587
    @support2587 3 ปีที่แล้ว

    Something new and useful before 8am. Cool!