Debugging CSS, no extensions required - Using your devtools

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 89

  • @djshiva
    @djshiva Рік тому +42

    You are truly a treasure to the web dev community! I am learning CSS and this just blew my mind!

  • @GoodheadOffical
    @GoodheadOffical Рік тому +7

    I was literally thinking about the same topic today 😅 i didn’t realize till now how much more Firefox can give when it comes debugging, thanks a lot!

    • @HariHaran-ef7pr
      @HariHaran-ef7pr Рік тому

      I am also discussed with my team and here is the video about css overview 😬

  • @JosephCodette
    @JosephCodette Рік тому +8

    You can also adjust values in devtools by using arrow keys . So for example a style has px values you can click on it and increase or decrease . Handy when you want to see real-time what a value will do

    • @yandev6956
      @yandev6956 Рік тому +2

      Even better is using scroll wheels instead of arrow keys. It can help a lot to quickly style something.

  • @the-real-tridder
    @the-real-tridder Рік тому +2

    I came here for the learning, realised I already learneded all this stuff by myself, stayed because its awesome information, and commenting for the algorithms! Every web dev or aspiring web dev needs to know how easy it is to debug their css. Thanks again for making such useful content!

  • @zorokutend
    @zorokutend Рік тому +2

    In the dev tool, you can enable some features for better debugging CSS in the settings ( the gear icon on the top right of the dev tool). For example, in the preferences, scroll down a little bit to the section Elements, you can enable the "Show rulers on hover" feature to line up your elements without extension. Or, you can add some presets to your preferred responsive devices when debugging in responsive mode.

  • @drochleprechaun
    @drochleprechaun Рік тому +1

    I use all of these tools every day, but I learned a bunch of little tricks I've somehow overlooked over the years. Very informative, thanks for the great tips!

  • @clevermissfox
    @clevermissfox 8 місяців тому

    Chrome now has the greyed out align-self [this element is not a grid or flex child]. Just happened to see that exactly this morning when I thought I had grid on its parent. Very helpful. I ❤ dev tools! The animation tab is extremely extremely useful. As is the ability to mess with your timing functions! I had no clue there is a clip-path tool too? What else don’t I know that I don’t know??!

  • @Marty72
    @Marty72 Рік тому +1

    Worth sticking around for the Firefox tips at the end.

  • @matthewreid1580
    @matthewreid1580 Рік тому

    So much cool stuff! Thank you! I knew about the style tab years ago. I worked at a daily newspapersnd would "change" the home page on my machine and call my co-workers over in a panic just to see their reactions.

  • @XiagraBalls
    @XiagraBalls Рік тому

    That FF tip at the end will be super useful; everything else I knew already.

  • @AvalonRishiFamily
    @AvalonRishiFamily Рік тому

    Oh, wow, I didn't know these things even exist. Thank you for so many treasures in just one video! God bless you

  • @gmos.99
    @gmos.99 Рік тому +2

    I mentioned on discord but I'll mention it here again, I was just watching this video and just by looking at your screen at 4:37 made me realize what was wrong with the responsive part of a project I was working on for a week! Thank you so much for that!!!

  • @ZeeJohansen
    @ZeeJohansen Рік тому +1

    Didn't know about the breakpoint visualisation option or the information box in Firefox. But I usually spend maybe 60 - 80 % in the DEV tool than in my editor when styling.
    Right now I'm even testing prototypes for my works live Shopify page, where I edit the HTML and enter my CSS to see how it integrates with Shopify's div and CSS hell 🤣🥰

  • @luketurner314
    @luketurner314 Рік тому +2

    I don't remember if Kevin demoed it in another video already but... when editing a numerical value in the dev tools you can scroll the mouse wheel to increment and decrement. If you hold shift and scroll, it increases/decreases by 10's; alt and scroll for 0.1's

  • @robin.journal
    @robin.journal Рік тому +2

    Thank you for another helpful video sir! I appreciate your efforts to bring us quality tutorials 😊

  • @thkorkem
    @thkorkem Рік тому

    Firefox devtools seems amazing, thanks a lot!

  • @Boganbrump
    @Boganbrump Рік тому

    Hey Kevin!
    Hope you find this. I did the free scrimba course you did for HTML and CSS. I then used what I learnt in my university assessment and got a High Distinction.
    Been a fan for a while 😃

  • @sovereignlivingsoul
    @sovereignlivingsoul Рік тому

    thanks kev, i do use the dev tools everytime i am coding for some reason or another, but this video was great for reminding me to maybe us them before i have an issue and for testing, one thing i hate s making a change or two and after deciding it wasn't what i wanted, i wlil undo everything and for some reason things are out of whack, that's when the dev tools can be very handing if i can't find the error in the code myself, if you are using chatGPT, you need dev tools, don't know about anyone out there, but i don't think chatGPT could code a button without an error.

  • @EddieBeaumontThomas
    @EddieBeaumontThomas Рік тому

    I use both Chrome and Firefox's dev tools. I particularly like that Firefox shows JS event handlers; very helpful..

  • @frankroos1167
    @frankroos1167 Рік тому

    A few more useful details I didn't know yet.
    Thank you master Kevin.

  • @francescovetere
    @francescovetere Рік тому +1

    Thanks Kevin! Your content Is always top notch, you are my main reference and inspiration! :)

  • @AdamFiregate
    @AdamFiregate Рік тому

    Thanks for the Firefox tip, Kevin.

  • @waspishbobfish
    @waspishbobfish Рік тому

    Love your videos. Coding my first project right now in vscode and struggling with things not working when i think they should. I've been using chrome and am immediately switching to firefox!!

  • @Inarahsdiary
    @Inarahsdiary Рік тому

    Great inform for all developers

  • @15-gimenajohnbriann.40
    @15-gimenajohnbriann.40 Рік тому +2

    I did not think of using browser as a debugger, thank you it really help me so much

  • @liselle8932
    @liselle8932 Рік тому

    This is fabulous, thanks!

  • @verawat
    @verawat Рік тому

    Thanks Kevin. I love you every day.

  • @JoshLearningFrontend
    @JoshLearningFrontend Рік тому

    If someone say CSS is frustrated i recommend your channel

  • @brandon_wallace
    @brandon_wallace Рік тому

    Great video. Thanks for this.

  • @ezekielswanson7813
    @ezekielswanson7813 Рік тому

    Your videos are amazing!

  • @bobobo1673
    @bobobo1673 Рік тому

    Great video Kevin! You are helping me a lot to learn, thank you! I'm glad I found the grid and Flex stuff because I'm stuck doing a sticky scroll of a grid column and I can't find anything about it. Let's see if this helps me. Greetings

  • @serveshchaturvedi2034
    @serveshchaturvedi2034 Рік тому +3

    Hi Kevin. Thanks for this awesome video. Would be helpful if u made a similar one for the css animations using dev tools

  • @Andreterragt
    @Andreterragt Рік тому

    Oh man. CSS is so incredibly frustrating and annoying for beginners. It seems like you are setting 15 different parameters to "center" and is still not centered. Debugging videos are greatly appreciated. I'm stuck with debugging all the time.

  • @ayaanshaikh6374
    @ayaanshaikh6374 Рік тому

    11:53 this is also added in Chrome, and it helps a lot

  • @pixiedev
    @pixiedev Рік тому

    RESPECT, A helpful video, it saves alot of time while working with css. 😊

  • @maerosss
    @maerosss Рік тому

    The way I style nowadays is basically create html, load it in browser and then just style all of it right in browser. When I'm done, I just paste it all into css ;-)

  • @hassaneoutouaya
    @hassaneoutouaya Рік тому

    Thank you so much!

  • @NemilSheriff
    @NemilSheriff Рік тому

    Thank you so much for sharing this!!

  • @jenasusil6
    @jenasusil6 Рік тому

    Thanks Kevin for your valuable content. by the way which font are you using ? it looks awasome.

  • @NikitaDrokin
    @NikitaDrokin Рік тому +3

    For some reason, Cmd+Shift+I doesn’t work on my Mac. Instead, I use Cmd+Option+C. It’s also a plus because the keys are so close together, and you don’t have to reach all over the keyboard to open “inspect element”

  • @BrunoMussoi
    @BrunoMussoi Рік тому

    The subtitles finally got it right "front end friends". I think this is the first time lol

  • @Davyhatesu
    @Davyhatesu Рік тому

    KEVIN IS THE FRONTEND G O A T!!!!

  • @davidjohnsonny
    @davidjohnsonny Рік тому

    OMG great shirt!

  • @sarpfeykunsener4070
    @sarpfeykunsener4070 Рік тому

    thank you bro thank you

  • @pedzsan
    @pedzsan Рік тому

    I clicked on this video but it was not what I was looking for. So… perhaps this is a suggestion for a future video.
    Today, I had page that I was working on. I’m very novice at CSS. And there was a “thing” (turns out it was padding) that was causing an icon to be moved over to the right. Where is it? Who is doing that? It took me “a long time” (seemed like) to figure out where that padding was coming from. And while it all seems “Dah!” obvious after you figure it out… it isn’t obvious before you figure it out.
    So… the suggestion for a video would be how do you figure out why your CSS isn’t doing what you expect it to do?
    What I ended up doing is getting into dev tools and turning things off until it finally jumped back left … but there’s gotta be a better way… I would hope.

  • @steveportas7961
    @steveportas7961 Рік тому

    I would also be intrested in seeing you set up.

  • @mrpicbuddy5723
    @mrpicbuddy5723 Рік тому

    it work on my pc thx bro vеry much

  • @victorlosadahernandez7125
    @victorlosadahernandez7125 Рік тому

    You should do a video about the new dev feature, CSS Overview!

  • @cerstar5725
    @cerstar5725 Рік тому

    I didn't think I knew all of this already, Great video like always

  • @nikhiltyagi6619
    @nikhiltyagi6619 Рік тому

    Thanks a ton!! You're awesome as always.
    Can you do a short video on how to make a basic html css javascript website GDPR compliant? I made a website for a client in UK and have Google analytics tracking turned on. How do I apply a cookie consent system on the website?

  • @mohsinkhan-wv4fu
    @mohsinkhan-wv4fu Рік тому

    i am always use that for debugging css

  • @landa9620
    @landa9620 Рік тому

    ty master

  • @KalpeshPanchal
    @KalpeshPanchal Рік тому

    Thanks Kevin for sharing this with everyone. All good except that you used few bad practices while presenting debugging.

  • @Sashad2003
    @Sashad2003 Рік тому +1

    I'm your first 🥇 viewer today 😉👍

  • @Eternal_Rise
    @Eternal_Rise Рік тому

    Could you also make a video about animations tab?

  • @prasannakumar-kf2pl
    @prasannakumar-kf2pl Рік тому

    Hey Kevin, myself prasanna from India 🇮🇳 and i am a junior front end developer
    I have an doubt on Impleting fonts in our web pages. How I actually do is by using font face with font extensions like TTf, otf, woff, woff2 font files
    Is it right way to do? Or is there any something more effective than this way

  • @PedroPisandelli
    @PedroPisandelli Рік тому

    Good old days of Firebug... the web development was never the same after it.

  • @jesutobitobi7588
    @jesutobitobi7588 Рік тому

    Hello Kevin, thanks for this video... I would to know if you know of any open source projects front end devs can contribute to

  • @lookupverazhou8599
    @lookupverazhou8599 Рік тому

    Thumbs up.

  • @-_._._-
    @-_._._- Рік тому

    5:14 I find that there are some pseudo classes (like :hover and such) that exist now, that aren't listed on the dev tools and as a result, it's impossible to get them to stay displayed so I can style them. I can't recall the ones I've seen before off the top of my head, but I've run into them while working on a MediaWiki dark mode project. If memory serves, one of them was a pseudo-class related to checkboxes. I was trying to restyle the various checkboxes. Some of the checkbox had some weird styling in some of their new-ish pseudo-classes that I found hard to locate in the dev tools

    • @KevinPowell
      @KevinPowell  Рік тому +1

      For some, like say @media for dark mode or light mode, or high-contrast, you can use your dev tools to emulate one or the other, which would activate the media query and you'd see it in the dev tools then.

    • @-_._._-
      @-_._._- Рік тому

      @@KevinPowell my dark mode skin (TF2CutContentWiki/TCRFDark repo on GH) was for The Cutting Room Floor Wiki (video game cut content wiki) and it was a "Bespoke" creation where I didn't take what I'd call "shortcuts" like inverting the colors on everything. I literally went through every page I could think of and recolored elements by hand.
      As for the unlisted pseudoclasses, I think the pseudoclasses I had trouble with were related to checkboxes. There's some new-ish pseudoclasses for inputs that aren't listed alongside hover, active, visited, etc in the dev tools. Makes it hard to single those pseudoclasses out like you can with hover/active/visited.

    • @-_._._-
      @-_._._- Рік тому

      @@KevinPowell aha, I remember which pseudoclass it was now. ":checked" was one I had trouble restyling. There's a whole slew of pseudoclasses that aren't represented on the dev tools window. Is there any way to modify that list and add new pseudoclasses to be able to force-display?

    • @LzysGraphics
      @LzysGraphics Рік тому +1

      @@-_._._- we’re you not able to click the checkbox? If it was inaccessible you could also have tried to manually check it either by adding ‘checked’ in the HTML tag or in JavaScript

  • @noclistify
    @noclistify Рік тому

    Watching Kevin for years now but I finally realized it's "Hello my front end friends", not "Hello my friend and friends"

  • @shivamrathore8291
    @shivamrathore8291 Рік тому

    Hey,
    thanks for the video.
    (apart from video's topic) I am in a little bit of confusion in CSS
    CONFUSION : can we edit/modify the input box blinking cursor
    I want to change the input box cursor blinking animation style from blink to expand (like VS code)
    is this possible? if yes then please make a video or at least tell me how can I achieve this??,
    if not then why??

  • @badcatdesign
    @badcatdesign Рік тому

    @7:46 Edge DevTools extension for VS Code has this cool thing where you can link the CSS changes back to the source and actually save them. ua-cam.com/video/HRpG_LLx0fI/v-deo.html it's pretty slick.

  • @lenninpalacios
    @lenninpalacios Рік тому

    I dont know if can compete with our 1px solid red.

  • @krishmehta7903
    @krishmehta7903 Рік тому

    if we dont know color code of the certain part of website ,
    chrome devtools color picker , we can find any color code of the website ( without any extension download )

    • @gg-gn3re
      @gg-gn3re Рік тому +2

      firefox has this too, several years before chrome added it. And it's on by default. ff's dev tools are generally far better than chrome except in some niche cases

    • @krishmehta7903
      @krishmehta7903 Рік тому

      @@gg-gn3re yeah man

  • @kiravolvo
    @kiravolvo Рік тому

    hi kevin. thank you very much for the video. quick question. how do you make devtools tab zoom in with 1 click? i can only find how to increase font size. thank you

    • @KevinPowell
      @KevinPowell  Рік тому +1

      Click inside the dev tools, and then ctrl + or ctrl - zooms in and out (guessing it's cmd on a mac)

    • @kiravolvo
      @kiravolvo Рік тому

      @@KevinPowell thank you.

  • @keremardicli4013
    @keremardicli4013 Рік тому

    How can we see @print?
    I have dynamic page where print co tent changes based on selection, I wanted to see @print query results but could not find a way.

    • @KevinPowell
      @KevinPowell  Рік тому +1

      Open the dev tools, then use `ctrl + shift + p` to open the command pallet, and type in "print" there, and it should show you an "emulate print" or something like that, that you can then enable. (would be cmd instead of ctrl on a mac)

  • @lucaslindgren3237
    @lucaslindgren3237 Рік тому

    I'm so early!

  • @RhayvenBlood
    @RhayvenBlood Рік тому

    Urgh. I dont think FireFox has quick grid/flex controls like chrome does lol. Would save me a lot of time X_X

  • @VinaySingh-jm8iw
    @VinaySingh-jm8iw Рік тому

    Can you debug the video title?

    • @KevinPowell
      @KevinPowell  Рік тому

      haha, surprised you're the first to mention that! Thanks, fixing it now!

  • @JamesBlackburn
    @JamesBlackburn Рік тому +1

    @Kevin Powell, ( ua-cam.com/video/ndeClnyHSo8/v-deo.html ) the three dots are called an ellipsis.

    • @PaulMcCannWebBuilder
      @PaulMcCannWebBuilder Рік тому +3

      Also known in the UI design world as a 'kebab icon'.

    • @JamesBlackburn
      @JamesBlackburn Рік тому

      @@PaulMcCannWebBuilder Haha. True! Hamburger and Kebab... mmmmm... food! 🤤

  • @mirzaumair8411
    @mirzaumair8411 Рік тому

    I am😁 the first