Write better CSS using logical properties

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ต.ค. 2024

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

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

    You are the only person on the internet who uses the best practices for pretty much everything in CSS. It's really inspired me to write good CSS. Thanks Kevin

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

    I'm loving CSS because of him

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

    Bro, I'm from Medellín, CO, and your content is helpul AF, incredibly the way you use to make CSS so understable.

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

    haven't used CSS for years, was a huge web developer and designer when html5 just came out, this video was recommended so I checked it out, man, CSS is so advanced, it's almost a programming language I mean this is crazy, makes me wanna go back to develop websites.

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

      You should check out things like calc(), min(), max(), and clamp() of you really want your mind blown 😊

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

    Man, thanks for this! The margin shorthand overwriting other margins is an issue I've had so many times. Always ended up having to scroll through my scss files to find the issue... The margin-inline will save so much time!

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

      Yeah, same here, really happy we have this now!

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    * It is my first time to see Arabic text.
    The way to write the Arabic language, the shapes of fonts and letters is really awesome

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

    If TH-cam allows me, I'd like your videos thousand times!!
    Great job man, you're a life saver.
    Thank you so much

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

    I know first hand the problems having these languages can create when writing code. Logical properties will certainly help me going forward. keep up the excellent work, as always :-)

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

    I only recently discovered this channel and I am loving it. For a decade now I had to use a CMS that restricts most of my attempts to use CSS (and almost all of HTML). For that reason I am pretty unfamiliar with recent trends and now I feel like I am re-learning CSS thanks to your channel.
    I hate to nitpick on my very first comment here, but at 18:42 you used margin-block-end: 1rem; to separate the sections, however margin-bottom would have been appropriate here, since if you look at the Japanese section, the margin was applied on the left instead of at the bottom. If there was a section after that there would have been no separation.

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

    Please continue with your good energy and vibes and never stop to drop those amazings classes. Thank you for real

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

    I consider myself an og css pro, but this made me realize how much useful newer css is around that I’m not really familiar with because of having old IE support requirements for so damn long.

    • @tonyr.6637
      @tonyr.6637 2 ปีที่แล้ว

      You’re in good company. ;-)

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

      Same! It's such a relief that that need is getting smaller and smaller.

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

    One of the most important CSS videos I've ever seen. Thank you!!!!!

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

    I don't comment videos often but this one's just a diamond! Thank you for your work.

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

      So glad that you enjoyed it!

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    This channel is legit gold mine.

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

    That is the coolest intro to any video I have watched, :) :), "Hello my friend and friends", its so css (Cool Sounding Stuff), Thanks for the video, very helpful

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

    My the Best teacher thanks. İ learn a lot of things from you. Also free))😊😊

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

    I swear I was just looking for direction properties, THANK YOU SO MUCH

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

    This is one of the most fruitful 20 mins of my life.

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

      So glad that you enjoyed it

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

    THis is amazing content! Thanks for sharing! Can't wait for these logical properties to come to all the browsers. I've definitely faced the issue you mentioned with margin: 0 auto;
    So using the solution you suggested will make things much simpler and cleaner.
    Thanks again!

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

    You're a great teacher love your videos!

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

    Super awesome Kevin, thanks

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

    I like the new directions you took with this video Kevin 😏

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

    Thank you . I really appreciate and respect the way you explain things.

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

    as usual and like many here, i cant thanks you enough for all your work and video in general with css. I always learn so much with you, so i always write better and cleaner css ( so with a correct though process ) !
    I which there could be a "Kevin Powel" for every language xD

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

    You are my inspiration 😊

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

    Awesome Kevin ♥️

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

    Immense quality for, like, a millionth time! #tonsOfRespect

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

    🤯 wow awesome, I feel like I now nothing about CSS after watching this. I'm totally going to check out all your CSS videos after holiday mode 👀 🧠✨
    thnx for sharing, love your content so far!

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

    FYI the technical term for the "dialects" like US vs UK English is _locale._

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

    Wow, you helped me saving a lot of time, thanks a lot.

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

    OMG, This save my life. Thank you King CSS

  • @AbhishekVerma-fe3wo
    @AbhishekVerma-fe3wo 3 ปีที่แล้ว

    Great content...I'm learning a lot from this channel

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz 3 ปีที่แล้ว

    Once again Thank you Kevin.

    • @GauravKumar-ue7nz
      @GauravKumar-ue7nz 3 ปีที่แล้ว

      Kevin Your Website got into Gary Simon's latest Video

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

    Hi Kevin, I started learning frontend web development recently and your CSS videos are so informative. Can you help me understand why doing some stuff in CSS is better when we have javascript or bootstrap and many other options which are capable of doing the same work.

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

    superb video! very well explained

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

    Please make a video about CSS counters.

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

    Wonderful trick bro...Love you man❤❤

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

    Thank you so much, every video is a treasure

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

    15:56 should probably be margin-block-start instead of margin-top, I think. If you don't understand the utility of these logical properties outside of writing modes, then you've missed out on a lot.

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

    uhh man, You are amazing ! 💜

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

    your efforts just make me like your video before watching it😊

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

    Tou one of the best who learn us good and best coding and I hope one day meet you ❤
    I need you make video about js I learn and learn js and still stick in it .
    I don't know what I do or what I use with js can you help me . Sorry for my English 😀😣

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

    Thank you very much, Kevin.
    So helpful.
    May I trouble you a bit more, please. So sorry to, please.
    My website html tag Language attribute is like this: .
    When I use logical properties in CSS, how does the page know the User's writing mode? Whether ltr, rtl, vertical-rtl, etc?

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

    I'm currently working on hebrew site template(rtl direction), which later will be used for more sites, which will be with ltr direction. But sadly I cant use all these cool features, because the client wants to support IE11(and IE11 doesnt support all this cool stuff), so me and my coleague have to make the site the hard way. We have two classess for both directions and we have to manage margin, padding, positioning and everyth for every direction. It would be so much easier if we could use these new and cool direction props, but sadly we cant. Anyway great video!

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

      Any way you can convince them not to bother with ie11? I understand for some, they still have users on it, but some want support for the sake of it, without even knowing how many users are on it.

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    this is a game changer

  • @RahulKumar-fp1gy
    @RahulKumar-fp1gy 2 ปีที่แล้ว

    Hello Kevin, how are you doing
    Since these properties are flow relative, don't you think that calling them relative properties rather than logical will be more justifiable?

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

    super interesting mighty stuff

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

    TBH just discovering locical properties, but is there any other scenario besides text-direction, in which they are really neccessary and better than the old ones?

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

    Please provide some context WHY, when you make a declarative statement like "dont/always do this"

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

    Really awesome

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

    @13:54 the japanese section is appearing to be (inline) wider than the other two. Look at the red border and you'll see that it's not aligned with the section edge like the rest. Why is that?

  • @邱梓榳
    @邱梓榳 3 ปีที่แล้ว

    Taiwanese keeps much ancient Chinese culture and usage. But it has been hardly written in words due to words & meaning lost in past centuries. Most of people were illiteracy in long tern so that inheritance became so difficult surely. Still thanks for mention our language😘

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

    The Arabic was not bad for a auto translation. Great video, keep it up.

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

      google translate has gone a long way, hasn't it? my native language is russian and google translate translates it almost flawlessly! compared to google translate from like 2014-2015 when it was atrocious, it did come a long way

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

      @@Kitulous very true, I have seen that Google translate can produce really great results if you write the first language grammatically correct.

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

    5:19 Shout out from Taiwan!!

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

    margin, padding, border-inline and block are so cool, but so sad that Edge have not support it yet

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

      Edge does. If Chrome supports something, so does Edge. If ever a compatibility chart says it doesn't, it's out of date or a bit behind.
      IE on the other hand...

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

      @@KevinPowell ohh thanks. I think I will use this more often.

  • @MysticCloak-e9r
    @MysticCloak-e9r 3 ปีที่แล้ว +1

    Hey Kevin, can I plz ask you whoch VSCODE theme and font you use. i really like the theme and font.I know this is Codepen but in previous videos I have seen you using. SO plz tell.

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

      Atom One Dark

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

      It's Atom One Dark :)

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

      *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    Awesome 😀

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

    You're a god🙏

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

    Me before watching : heh css ..
    After watching : *imposter syndrome anxiety kicks in*

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

      Heh, I know the feeling! imposter syndrome gets us all :)

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    Hello I just discovered your channel few days ago and its been amazing. 1 thing I would love to see you do is how to edit scroll bars with css only. Like if you put overflow-y: scroll. How do you modify the scroll bar that pops up in all browsers especially Firefox.

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

      Firefox has pretty limited styling for scrollbars, but yeah, I probab6 should do a video on that

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

      @@KevinPowellThanks alot! Will be on the look for it

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    What's your monitor set-up? That's looking large!

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

      The one you can see when I'm talking at the intro is a vertical, 24" screen I have to my left. In front of me, I have a 27" screen :)

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

      @@KevinPowell Ahhh, the old vertical monitor trick! Nice. Have you tried 4 screen yet? That's my dream set-up for design and dev.
      btw, keep up the good work. I've been doing this for 21yrs and cant keep up with it all, so your my 'New CSS specs how-to' guy, ha! No pressure!!!

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

    Width: 70%; /normal way to set width/
    But for right to left how to set width i used
    margin-left:30%;
    Is there any other ways to set width in direction rtl.... ????

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

      Width should work fine? In my example everything goes to the left, but if the html had dir="rtl" they would have lined up on the right side instead.

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    good one

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

    How about background-position? no logical values supported 😭

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

    What's the browser support for these features? would be nice to know what these are when discussing/showcasing them.

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

      Supported in all modern browsers. I only mention browser support when there are issues with it, like I did with the floats 😊

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

    I just discovered these early this week but didn't have idea how were they called

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

    I can use it on my Chrome on my macOS Big Sure too :D I think this works since months :P

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

    Someone kindly direct me to Kevin's video where he talks about padding-inline, border-inline, etc.

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

    Pretty cool, but man I need a dictionary these days to look up CSS properties lol wish they would get rid of the old ones we no longer use....

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

    You are the best

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

    Brilliant

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

    I have zero interest in building sites in any other languages, apart from English.
    So I was put off from watching this video.
    Do logical properties etc apply to purely English websites?

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

    margin-inline: ♥;

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

    i read all these properties in docs and thought why it exists,
    now i know😂🤦

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

    But... we still should do stuff like 8:50 with flex, right?
    Anyway its a great video, I will definitely share it :D

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

      Using flex for the border?

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

      @@KevinPowell haha, I meant that I have to overwrite eg. flex-direction: row with row-reverse, because caniuse says that justify-content: start or end support is not that good yet :D

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    amazing

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

    Word on your tShirt speaks about what you are in css

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

    very interesting wohoo

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

    This is nice, but I think it's in everyone's best interest if I just stick to English

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

    Japanese newspapers use vertical-rl.

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

    Kevin is not the king of CSS.... he is the GOD of CSS!!!

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

    Browser compatibility, uhm.

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

      It's pretty good for all of these other than the float one

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

    Maybe the thumbnail was made with css? who knows 🤷‍♂️

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

    Kevin, enough bs.
    Let's have one on video background web pages.

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

      I've done it already th-cam.com/video/RIDA6elhmBU/w-d-xo.html

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

    4th but can u pin now plz

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

      Glad that you're enthusiastic and getting in early, but I keep the pinned comments for corrections to something in a video, or other things like that :)

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

      @@KevinPowell :( First Time i Am watching u more then 3 months

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

      @@KevinPowell *Can you please make a video building clone of image slider on **rog.asus.com**, because that looks pretty aweeome ? I tried but I was not able to make that progress bar in the slider. So please help me sir.*

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

    4th comment