The easiest improvement you can make to your CSS

Поделиться
HTML-код
  • Опубликовано: 23 дек 2024

Комментарии • 161

  • @OctagonalSquare
    @OctagonalSquare Год назад +293

    GENIUS! I thankfully haven’t had a reason to remove default outlines, but if I do then that will be so helpful

    • @Mr-Raptor
      @Mr-Raptor Год назад +4

      have you never styled a button
      or you just like added another outline on top

    • @OctagonalSquare
      @OctagonalSquare Год назад +4

      @@Mr-Raptor well most of the places I have worked used css tools like Bulma and Bootstrap, so 90% of the time it was using built in styles from those

    • @Mr-Raptor
      @Mr-Raptor Год назад +3

      @@OctagonalSquare oh ok

    • @dipanjanghosal1662
      @dipanjanghosal1662 Год назад +1

      @@Mr-Raptor yeah, I just slap a Bootstrap class to it

    • @Mr-Raptor
      @Mr-Raptor Год назад

      @@dipanjanghosal1662 imagine using bootstrap

  • @Retro.one4
    @Retro.one4 Год назад +175

    This is great advice! This helps out with accessibility so much.

    • @KevinPowell
      @KevinPowell  Год назад +22

      Always nice when accessibility tips don't really require any extra work or effort 😁

    • @Adam-kk7nw
      @Adam-kk7nw Год назад

      ​@@KevinPowell Kevin I been learnijg html and css and javascript but after while I forgot to center a div and flex and css grid any advance how to get lot better at css

    • @codeoptimal7197
      @codeoptimal7197 Год назад

      @@Adam-kk7nwpractice

  • @wizpig64
    @wizpig64 Год назад +12

    real people use high contrast mode, thank you for considering this!

  • @funnyanimalworld7579
    @funnyanimalworld7579 Год назад +1

    Another tip is if you use fancy css always check safari cause that crap does not like fancy css and will most definetly wont work. Or if you can ignore safari cause it sucks.

  • @LorenHelgeson
    @LorenHelgeson Год назад +11

    Cool! Thank you very much, Kevin. I was taught a very long time ago - before responsive sites were even a thing - to do outline:none, and I never saw a reason to revert it, or anyone saying it should be strictly forbidden. But after tumbling down the rabbit hole of ADA compliance, I wasn't sure what to do, and this certainly works.

  • @DasBauer
    @DasBauer Год назад +1

    Thank you for mentioning keyboard navigation

  • @NathanHedglin
    @NathanHedglin Год назад +5

    This is why I love your content. I've learned so much over the years and nailed job interviews thanks to your content. I was a backend dev so I was terrible as CSS.

  • @blackpurple9163
    @blackpurple9163 Год назад +8

    I love these kind of short tips that make the websites a lot more accessibility - friendly

  • @ruantristancarlinsky3851
    @ruantristancarlinsky3851 Год назад +1

    You are such a Legend Sir!

  • @christopherjschultz
    @christopherjschultz Год назад +1

    Thanks for this! Great to know for accessibility. Cheers!

  • @jannowak5153
    @jannowak5153 Год назад +30

    Great info thanks. This should be included into any tutorial/tip/whatever for css

  • @developerpranav
    @developerpranav Год назад +19

    Really appreciate the accessibility oriented, and keyboard navigation oriented tweaks that you discuss on your channel!

  • @codinginflow
    @codinginflow Год назад

    That's genius, thank you very much!

  • @Way_Of_The_Light
    @Way_Of_The_Light Год назад +36

    How can I remember all these CSS tips and tricks!? 😭
    Thanks again for all you do Kevin 🙏

    • @GMCorner
      @GMCorner Год назад +3

      My way is to do 2 things: Save it somewhere and use it everytime i can in my side projects, so by that i can remember to use these for my work projects.

    • @andreaswagner_dev
      @andreaswagner_dev Год назад +4

      You can not. You can only give your best everyday.

    • @LilRumi
      @LilRumi Год назад

      Make a playlist of your favorite tips! Or if you have too many, make multiple playlists! Organize them so you have a better understanding of what videos are in which list! :)

    • @LilRumi
      @LilRumi Год назад

      @@InternetWarrior hmm, true.🤔 I have lists for rewatch later, but I don't keep it in mind 😂 maybe unless something reminds me of it though.

  • @annebovelett
    @annebovelett Год назад

    Hey Kevin, thank you for this great and precise explanation!! A great piece for sharing. A big smile and a virtual hug from across the pond!

  • @Boffering
    @Boffering Год назад

    I did this literally yesterday 😭 Thank you!

  • @tonyartz
    @tonyartz Год назад

    Amazing! Very useful, I will keep it in mind next time, love your videos, very helpful and inspiring, please keep up the amazing work

  • @PIRAKAS666
    @PIRAKAS666 Год назад +1

    Very good tip Kev!

  • @goodshiro10
    @goodshiro10 Год назад +13

    Einstein in CSS 👀👀😀❤️

  • @Hasan...
    @Hasan... Год назад

    I'm not a developer but I'm a high contrast mode lover and user, and this is indeed much needed!!

  • @TentativeChaos
    @TentativeChaos Год назад

    whoa, thank you for this! fantastic info!!

  • @AlazTetik
    @AlazTetik Год назад +2

    Your tips are life-saver! 🔥🖖

  • @daniellynch3724
    @daniellynch3724 Год назад

    loving the format of shorts to demo accessibility things like this

  • @matthewclarke1926
    @matthewclarke1926 Год назад +4

    My boy didn't do this. Not going to pay him.

  • @milansingh3222
    @milansingh3222 Год назад

    I am doing right now and I will use outline color. Thanks

  • @OmAn1994
    @OmAn1994 Год назад

    Saved for later, I'm learning HTML 5, CSS3, and JavaScript.
    So it will help me.
    Thanks

  • @maxgamer6476
    @maxgamer6476 Год назад +6

    the boss of css

  • @terrencemurray8153
    @terrencemurray8153 Год назад

    This is just what I needed! I forgot to remove the outline from the button last night and was about to do it this morning haha

  • @LeGuJ
    @LeGuJ Год назад +8

    I'm a simple man, you talk about Accessibility you get a like ...

  • @MichaelPuzio
    @MichaelPuzio 4 месяца назад

    I don't think I've ever commented on any of your videos (although I find them very resourceful and helpful, Kevin :) ), nevertheless this is such a prescient and smart pro-tip that I just have to say - KUDOS & THANK YOU!

  • @ali-celebi
    @ali-celebi Год назад +3

    Expert advice as usual! :)

  • @indecisive.m
    @indecisive.m Год назад +4

    Amazing tip!

  • @RodrigoDAgostino
    @RodrigoDAgostino Год назад

    Thank you, Kev, for caring about the stuff nobody pays attention to! Little things like this should start making a difference :)

  • @panpanzhang
    @panpanzhang Год назад

    Nice to know, thanks 😊

  • @techlifejournal
    @techlifejournal Год назад

    Your the only guy on earth comes to my mind when it is css

  • @ankitaburman5406
    @ankitaburman5406 Год назад +2

    Great Advice Kevin .. u r the best 💪

  • @MasayaShida
    @MasayaShida Год назад

    Aw man I've always used outline none. Thanks for this!

  • @mannuelf
    @mannuelf Год назад

    amazing, you sir are a genius, love it.

  • @MrKyriakos32
    @MrKyriakos32 Год назад

    Wow you are a god, crazy good tip, thank you very much!

  • @bigmistqke
    @bigmistqke Год назад

    I would love a serie on all these accessibility tricks

  • @harrysmith8495
    @harrysmith8495 Год назад

    Omg, you're right why didn't I pay attention to this, btw thanks for the solution, i hate the default outline so I remove it, but this is different

  • @rezamohammadi1210
    @rezamohammadi1210 Год назад

    Thank you I was using that alot

  • @endunry
    @endunry Год назад

    That must be the best application of yt shorts. Short nice info which i gonna use tomorrow

  • @mrabhijitrabha
    @mrabhijitrabha Год назад

    Thank you Kevin.

  • @dhimannavjot1
    @dhimannavjot1 Год назад

    thank you i always used outline none

  • @Edwardtonnn
    @Edwardtonnn Год назад

    Golden nuggets. 🙏🏼

  • @imaginedragon5532
    @imaginedragon5532 6 месяцев назад

    This man was put in this world to conquer css 😁

  • @Hello_VVolf
    @Hello_VVolf Год назад

    Wow, I just learned something that I don't know I need it.

  • @shivamjhaa
    @shivamjhaa Год назад

    Great Kevin! I really love these small things that pays so much UX dividends. Can we have a playlist for such simple tricks ?

  • @sucodelarangela
    @sucodelarangela Год назад

    Awesome tip on accessibility!

  • @ocin3752
    @ocin3752 Год назад +6

    When I use outline-color: transparent, it gives me a white outline i.s.o. a transparent outline in chrome and in firefox! (on windows 11, not using a contrast theme)

  • @zainahmadkhansherwaniDot
    @zainahmadkhansherwaniDot Год назад

    "I'm hoping at least"😅 That sounded like a teacher subtly scolding his student

  • @kidstarr100
    @kidstarr100 Год назад

    Wowwwww, it’s crazy that this video came up when I encountered this dilemma

  • @colin_actually
    @colin_actually Год назад

    Thanks for this tip. Never occurred to me.

  • @aham_sammich
    @aham_sammich Год назад

    Mind blown! 🤯

  • @aidennelson3171
    @aidennelson3171 Год назад

    Nice, thanks for the info! May God bless.

  • @erikjansson1790
    @erikjansson1790 Год назад

    ”If you’re a friend and developer” 😊

  • @ShahAlom
    @ShahAlom Год назад

    Nice, Thank You!

  • @Endrit719
    @Endrit719 Год назад

    I've always done that. CRAP!!. Thanks for this tip, really love this shorts.

  • @HocineKamikaz
    @HocineKamikaz Год назад

    Whaaat.. Just hours ago i was wondering about this.. What a coincidence 😮!!

  • @Stoney_Eagle
    @Stoney_Eagle Год назад

    Did a quick find and replace of 32 instances 😊

  • @javohir1704
    @javohir1704 8 месяцев назад

    very helpful, thanks

  • @zevanrosser
    @zevanrosser Год назад

    well, that is awesome!

  • @Ceko
    @Ceko Год назад

    Super! But so many things to remember, how do you keep track of all those little gems of knowledge?

  • @eromoseleedeko3839
    @eromoseleedeko3839 Год назад

    tnks

  • @gabrielavila3224
    @gabrielavila3224 Год назад

    tnx sensei!

  • @Sachin6291
    @Sachin6291 Год назад +1

    Did that just yesterday lol, now i have to change it

  • @goodnessdavid6583
    @goodnessdavid6583 Год назад

    I am surprised to see you use the :is pseudo class instead for hover and focus behavior. I use the :where Pseudo-class for the same purpose and it still works.
    (PS: I learnt everything from your channel)
    EDIT: I just remembered that they both do the same thing but at different degree of specificity.

  • @Haniv1001
    @Haniv1001 Год назад

    🙏 so simple and so useful

  • @hikari1690
    @hikari1690 Год назад

    I never knew! Thank you for helping us make the web more accessible. Thousands of noobs at a time

  • @LeeWise
    @LeeWise Год назад

    I love it thank you

  • @pogiakolagi1909
    @pogiakolagi1909 4 дня назад

    This is some king shit. 👑

  • @alexk20z3
    @alexk20z3 Год назад

    Love this

  • @jithinbp7168
    @jithinbp7168 11 месяцев назад

    😮 nyc observation

  • @SquareballoonCoUk
    @SquareballoonCoUk Год назад

    I'm sure I heard of a way to show it for screenreaders and other accessible tools but I can't remember what it was. I think it was a data attribute

  • @gemfire400
    @gemfire400 Год назад

    Thanks

  • @noobaoo
    @noobaoo Год назад

    thank you

  • @tejasnikam3287
    @tejasnikam3287 Год назад

    I just used outline none :)

  • @suya1671
    @suya1671 Год назад

    Do you have any other tips for accessibility? This seems awesome

  • @private-1
    @private-1 Год назад

    Very clever idea

  • @kronickittiez7929
    @kronickittiez7929 Год назад

    Why thank you good sir

  • @Nash-ken
    @Nash-ken Год назад +1

    Navigating on high contrast mode is like walking on Lego... So if you do this... I am sorry for you

    • @dipanjanghosal1662
      @dipanjanghosal1662 Год назад

      Maybe someone's using it because of accessibility reasons

  • @J90JAM
    @J90JAM Год назад

    Edge case, but interesting none the less.

  • @igorcweb
    @igorcweb Год назад

    Beautiful

  • @HorizonHuntxr
    @HorizonHuntxr Год назад

    Wouldn't this cause the physical space the outline takes up around the button still be there though? so if i add a border afterwards, wouldn't that border appear on top of the outline making it not flush against the edge of the button?

  • @hakamhammoud1402
    @hakamhammoud1402 3 месяца назад

    Really you're great ❤🌹

  • @Amar11115
    @Amar11115 Год назад

    that is some awesome tip!

  • @PaweBystrzan
    @PaweBystrzan Год назад

    Still want to use what should be done and expected. Outline is not a problem to resole, so don't even try. Just use it smart.

  • @turolretar
    @turolretar Год назад

    I just wouldn’t change the default outline at all 😂. But this is a great tip

  • @Lashistoriasdelilith
    @Lashistoriasdelilith Год назад

    I've tried it but when I clicked, the border desappeared too..

  • @jacintfodor1296
    @jacintfodor1296 Год назад

    Just wondering if there is a linter for these accessobility issues.

  • @rohitahuja999
    @rohitahuja999 Год назад

    Father of CSS

  • @xBZZZZyt
    @xBZZZZyt Год назад

    why does box-shadow not work with high contrast mode?

  • @varshakapil8224
    @varshakapil8224 Год назад

    It's my favourite ☺️

  • @osawereao
    @osawereao Год назад

    How do you bookmark RUclips shorts?

  • @patrykkuniczak2516
    @patrykkuniczak2516 Год назад

    But 'outline: transparent' work in the same way?
    I used it many times 😁

  • @joinodestry
    @joinodestry Год назад

    Just use tailwind comes with this by default

  • @Mayank_Bisht_MB
    @Mayank_Bisht_MB Год назад +1

    Me who don't know what is outline 😂

  • @XilqaXilqa
    @XilqaXilqa 13 дней назад

    hey homes i cant remember how to style my buttons using css something ease in and out please help i was in car crash havnt coded in 4years or more im trying again and dont wana give up 😂 so far my html is working im sure to find places i forgot i havnt touched javascript or php or python or batch i think im going to have a hard time recalling any of it😂 but i dont give up😊

  • @piyushlovanshi8142
    @piyushlovanshi8142 Год назад

    I've used border none