Learn CSS Media Query In 7 Minutes

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

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

  • @endlesspixels9980
    @endlesspixels9980 2 года назад +124

    Took me a few min of researching, but if anyone is curious on how he got that tool on his live server browser, he opened up the console and clicked on Device Mode button on the top left. It's like a button with the symbol of 2 rectangles overlapping each other. From there you can choose your device list to test as well as manually move your screen around. Very useful! Thanks a lot for this very well, quickly explained video, Kyle!

    • @ssanith
      @ssanith 2 года назад

      Thank you, but the first comment is the same thing

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

      does firefox have this?

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

      ​@@thirddroneyes bt i relied on chrome for this. Responsive design in dev tools. More tools in Firefox.

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

      I can not find the device mode button, I am on chrome. Any suggestions ?

    • @derealninetynine
      @derealninetynine 9 месяцев назад

      LoL you have to install live server extension on your vs code

  • @puwned
    @puwned 4 года назад +594

    You might put this code in the html head section:
    Without this code (or similar to this;) ) media query will not execute properly.
    Thank me later :D

    • @WebDevSimplified
      @WebDevSimplified  4 года назад +111

      Great point. I am so uses to using Emmet for setting up my html and it does that for me

    • @amyp.575
      @amyp.575 4 года назад +1

      @@WebDevSimplified How do you get Emmet to layout an HTML skeleton? From what I have seen, you have to type meta:vp at the very least. Am I missing something?

    • @WebDevSimplified
      @WebDevSimplified  4 года назад +55

      @@amyp.575 If you have a blank HTML document and type ! and then hit enter it will generate the boilerplate HTML shell with this meta tag.

    • @kingundfaker
      @kingundfaker 4 года назад +8

      @@WebDevSimplified why don't you pin this though? 😅

    • @BehruzbekOtayev
      @BehruzbekOtayev 4 года назад +2

      Emmet does it automatically. But it's good to know.

  • @jorge88824
    @jorge88824 4 года назад +80

    Straight explanaition. A lot of videos on youtube can't handle this, but you're a master. Watched 2-3 of your videos, but for sure those won't be the last one. Thanks!

    • @WebDevSimplified
      @WebDevSimplified  4 года назад +10

      Thank you. I'm glad my videos are able to help!

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

      @@WebDevSimplified You're understating it, right?

    • @Yogesh-kr7bo
      @Yogesh-kr7bo 9 месяцев назад

      Or press Ctrl shift m

  • @BorgMater
    @BorgMater 4 года назад +104

    Dude, short and concise, simply beautiful! Subscribing was never this easy and needed :D

  • @Fubbel42
    @Fubbel42 3 года назад +19

    Oh man finally someone who explained it in less than like 45 minutes, THANK YOU and I'm subbed 👍

  • @Mdroudian
    @Mdroudian Год назад +23

    Seems to me that "Media queries" are just CSS "If" statements; like any other "if" statement you would learn in any other programming language. If you look at it that way... it makes this much easier to understand.

  • @EduardKaresli
    @EduardKaresli 4 года назад +47

    Simple and straight to the point ,as always.
    Thanks Kyle!

  • @PhyFlame
    @PhyFlame 4 года назад +63

    I somehow enjoy watching your videos just briefly covering some topics with which I'm familiar with.
    For this one I would however like to mention that it is extremely common to use *min-width* in media queries. This goes alongside the design philosophy called mobile first. There is less performance overhead for small screen devices which usually just happen to have less performance.
    Make sure to stay all the way on top. Your increasing channel size is a proof that more and more people will come into contact with such topics through you, therefore it is your responsibility to give it all your best :)
    Bye ~

  • @benjaminmella2407
    @benjaminmella2407 2 года назад +1

    thanks for the quick teaching, u did a gob job, no matter the ones who criticizes and doesn't contribute a thing or making their own videos

  • @user-yh6zz3wr1e
    @user-yh6zz3wr1e Год назад +2

    I started coding a few months ago on my own and now I'm doing a certificate program through Mimo for front end development. You made this much easier to understand than other videos I've been trying to learn from. THANK YOU!!

  • @nikolasavic5917
    @nikolasavic5917 2 года назад +1

    I have been struggling with the problem of one part of my website not being well-sizeable for way too long and I found this video as perfect solution. Thank you!

  • @alanvallis882
    @alanvallis882 4 года назад +11

    I was having great difficulty comprehending piece of css. This Brilliant video, very concise well explained, good clear sound and good quality image has help tremendously. Excellent Many Thanks

  • @salemkittenkat
    @salemkittenkat 3 года назад +4

    I've used @media query before and I did understand it...but I was always confused and search for explanations and tutorials. This video is the first and last video I'll look at because, well as expected, your explanation was super simple. lol. Subscribed!

  • @robinkartik6356
    @robinkartik6356 4 года назад +5

    You saved my life in just 7 minutes. Wonderful job brother.

  • @likepeppermint
    @likepeppermint 4 года назад +15

    This video is exactly what I’ve wanted !!
    Simple, easy to understand, concise, essential...
    Thanks Kyle! I’m really happy to find your videos

  • @liveyourdreamsdotbe
    @liveyourdreamsdotbe 4 года назад +5

    Thx for all the tutorials so far. I keep coming back to your channel because your tutorials outshine all the others in every aspect.
    They're to the point, not too fast or too slow, very understandable, not too long or too short, ...
    One tutorial I would appreciate to see is how to animate a popup div with zoom/fade in (already found that one with animate in css after display is set to block), but also how to zoom/fade out when you close the popup div before the display is set to none
    I have already been searching the internet, but I haven't found the answer yet.

  • @quatrefinance4946
    @quatrefinance4946 2 года назад +1

    We actually subscribed today to your channel since over 5 of your videos we have watched. Thanks for the good work.

  • @AIGlobalbiz
    @AIGlobalbiz 9 месяцев назад

    I've been learning how to code and not long ago, I felt confident and ready to do a project for a customer. I'm nearly finished with it, but I just realized I have no clue how to adjust the website so it works well on phones and tablets too. That's what landed me here😫. I'm about to incorporate your tips, thank you so much for this video!

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

    thank you so much for this. Very easy to follow very well said :)

  • @harikarthi5139
    @harikarthi5139 3 года назад +1

    the bottom selector is preferred if many selectors have the same specificity .that was a very nice and helpful thing that i din know earlier .thanks for that : )

  • @HansjeVdTillaert
    @HansjeVdTillaert 2 года назад +1

    That was a very clear explanation. Thanks for sharing.

  • @codingsenju4189
    @codingsenju4189 4 года назад

    Had no idea that orientation was a factor with media queries. But it makes perfect sense.

  • @scodemy1976
    @scodemy1976 4 года назад +2

    Thanks a lot... Your channel has made me a better developer and has really improved my coding skills. Got motivated last month and I started my own web development RUclips channel. Am grateful

  • @jsblade2770
    @jsblade2770 3 года назад +31

    this is somehow entertaining to watch, l don t even feel like l am studying xD

  • @guillaumedupont2902
    @guillaumedupont2902 4 года назад +7

    Dude, your course is so clear. Thanks so much. Keep on going!

  • @noir371
    @noir371 2 года назад +1

    Exactly what I needed. Thanks!

  • @Rianxa
    @Rianxa 3 года назад

    Thanks! You help me a lot! Don't understand ever, but now it's clear

  • @ssanith
    @ssanith 2 года назад

    Thank you so much, you're the only one who taught what these @media mean... thank you 😊

  • @projectDominic
    @projectDominic 2 года назад +1

    brilliant insight, I watch your videos to fill in the gaps of my cheap courses

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

    Excellent video!! I was under the impression media queries was going to be a painful experience. But you proved that it was actually simple, thank you.

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

    I love the way you explained this. Easy to understand, and straight to the point. Thanks for your Intel.........

  • @reisezone4574
    @reisezone4574 2 года назад

    i have learning for almost 3 weeks about media querries and couldnt really understand, but this video in just 5 minutes i have understood everything with a very little energy used...

  • @edgarchavez6882
    @edgarchavez6882 2 года назад +1

    Great freakin job dude. Simple, yet very informative.

  • @mikebuchanan1119
    @mikebuchanan1119 3 года назад +2

    Your videos are really helpful. Clear, to the point, no assumed knowledge. Keep it up.

  • @richnimbu
    @richnimbu 2 года назад +2

    You've got a real talent for clearly explaining things. Always enjoy your content!

  • @xuanbachnguyen4119
    @xuanbachnguyen4119 2 года назад +1

    I feel the simpleness now, thank you

  • @tarcisiomateus1506
    @tarcisiomateus1506 2 года назад +1

    I'm impressed with the amount of information and diferent scenarios that you were able to cover in only 7 minutes

  • @samdeyemi
    @samdeyemi 2 года назад +1

    You made this look so easy 🤞👍👏
    Thanks

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

    I do have a short attention span, watching all your videos help me to understand better about coding.

  • @sorterql
    @sorterql 7 месяцев назад

    This is a pretty cool tutorial that explains how this works well but the problem is not how it works but how to use it. Let me explain what I mean. When someone is going to be designing a website they are most like going to be using the @media queries in order to make their website more responsive to make it work better on all kinds of devices like phones & tablets. What would be cool is to have explained how to find the right values for max-width and height for these devices and how to appropriately decrese and increase fonts and other values in order to make websites more responsive. Understanding how @media query works is easy on its own but how to make a website responsive is quite enigmatic for me at this moment.

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

    I will give a shout out to this channel, im trying to improve my frontend skills and i have taken bootcamps and the meta course in course and I find myself coming back each time to his videos. He explain it clear and with good examples.

  • @dan_evaa7605
    @dan_evaa7605 4 года назад +2

    Been stuck on media queries over two weeks until i came accross this video, thanks man. Love from Nigeria😇😇

  • @fatemeahmadifard7591
    @fatemeahmadifard7591 10 месяцев назад

    Wow! Your video is very very simple & easy to learn. I can't understand this topic better than this.

  • @kumar_prabhat
    @kumar_prabhat 7 месяцев назад

    i loved this video. finally made me understand how simple media queries really are. to the point. no unnecessary complications.

  • @SanaAli-fy8ho
    @SanaAli-fy8ho 4 года назад +1

    Please also elaborate on what screen sizes should be definitely covered to get perfect layout on all screen sizes

  • @nichoanton05
    @nichoanton05 2 года назад +1

    Dude, you making my life alot easier. Thank you!

  • @lonleybeer
    @lonleybeer 3 года назад +1

    Quick and easy, thanks dude, i have exams regarding media querries this definitely saved a lot of time !

  • @Aisha........
    @Aisha........ 2 года назад +1

    Thank you very much! Your videos always help when ever I have a problem. Short, simple and straightforward.

  • @nitinmistry6280
    @nitinmistry6280 3 года назад +1

    Great short video. Very helpful. Thank you!!

  • @ramonmaximiliano3557
    @ramonmaximiliano3557 2 года назад +1

    Straight to the point!

  • @LenderAlex
    @LenderAlex 2 года назад

    WOW. Very nice and very simple video. Thanks a lot 🙌🏽

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

    This literally saved my project from the recycle bin.. ❤️❤️❤️❤️

  • @excaliburgz1996
    @excaliburgz1996 4 года назад

    Do you have a video for properly styling the print sheet using css? For example you wanted to print the form with a nice design. ..

  • @jorgeraymason
    @jorgeraymason 2 года назад

    YEAHHH NOW I CAN MAKE MY WEBSITES RESPONSIVE!!! YEAHHHHH!!!!
    thanks man.

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

    Learned Media queries. Thanks to Kyle for explaining everything in the best way possible. Kyle simplifies!

  • @seenakhanov1572
    @seenakhanov1572 2 года назад

    i love your videos very useful in short version, thank you

  • @sherifsamir6888
    @sherifsamir6888 2 года назад +1

    quick, simple and to the point, thank you

  • @bananadebigodecortes
    @bananadebigodecortes 3 года назад

    Wow what a great video!
    Thanks from Brazil :)

  • @BehruzbekOtayev
    @BehruzbekOtayev 4 года назад +1

    This video earned my subscription. Thank you very much. Precise and clear explanation, no bullshit talking. 👍👍👍👍Keep growing.

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

    you did a great job here. Deeply appreciate this KYLE

  • @RameenFallschirmjager
    @RameenFallschirmjager 4 года назад +2

    I like your face expression when you're explaining things. You are obviously enjoying yourself, and it's definitely contagious! keep on the good work.

    • @codiumyt
      @codiumyt 3 года назад +1

      can't tell if this is ironic

  • @alvingomez7079
    @alvingomez7079 2 года назад

    RUclips and sponsors should pay you more! Thank you for this..

  • @ogaitaspacaal2468
    @ogaitaspacaal2468 2 года назад +2

    what extension did you use to resize the page? awesome video!

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

    Thank you so much for this simple quick and easy tutorial! I learned exactly what I needed to know.

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

    I saw you have one with advanced css without mediaqueries and thought id check this watchlisted one too. Absolutely love your content, And you!! Thanks for making the web dev easy for us!!

  • @foryouandme8644
    @foryouandme8644 2 года назад

    Thank you so much. I have figured out after watch your video.
    Great work Simplified!

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

    This is how all videos should be, straight to the point! Thanks hero!

  • @sakshamchhatkuli271
    @sakshamchhatkuli271 4 года назад +2

    Different selectors in media query : orientation , print , max-width , max-height

  • @limavfabio
    @limavfabio 2 года назад +1

    Great video, straight to the point.

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

    Very crisp and explained a lot of context in very minimal time. Appreciate your effort.

  • @glxxmy
    @glxxmy 3 года назад +1

    So, so easy to understand. Trying to learn this as something to put on my resume. thank you, brother!

  • @pedrosilva4342
    @pedrosilva4342 2 года назад +1

    thanks bro, really simple to understand and straight to the point!

  • @srikantht2403
    @srikantht2403 Месяц назад

    thank you bro for the simplified explaination of media queries

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

    wow...just..wow. Demystified in 7 minutes....SO TRUE!!!!!!!

  • @xivus11
    @xivus11 3 года назад +1

    omg you're so good-looking and smart. Thx for the simple and explicit tutorial!!

  • @nico.d.1846
    @nico.d.1846 2 года назад

    Crystal clear, quel bonheur !

  • @SuperLukiano
    @SuperLukiano 4 года назад +1

    I'm trying to figure out who's better, you or TheNetNinja. Because you guys ROCK.

  • @file4318
    @file4318 2 года назад +1

    great video, concise and contained all the information i needed

  • @Lea-pe7jy
    @Lea-pe7jy 2 года назад +1

    Hi Kyle, can you please share what is the plugin you were using on the right side of your screen, where you could manually change the screen size with pts specified?

  • @ayl247
    @ayl247 3 года назад +2

    Happily subbed. Thank you so much!

  • @billbyrd9845
    @billbyrd9845 2 года назад

    Well, I was going to praise your brevity, but I see from the comments that I would be piling on. Thank you very much. I'm hooked. Subbed and liked and rang that bell.

  • @anan-hc8wb
    @anan-hc8wb 3 года назад +1

    GREAT VIDEO !!!!!! DIRECT TO THE POINT.

  • @nonsolovita
    @nonsolovita 4 года назад +2

    You deserve al lot more subscribers, i am gonna always say this. Thank you for the content.

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

    Thank you so much KYEL😇.
    You really made it simple.

  • @ifeomanora8136
    @ifeomanora8136 2 года назад

    Thank you so much. You are a good teacher and also beautiful. I was constantly distracted lol. Also, I understand CSS media query better. Thanks.

  • @Valo_TV
    @Valo_TV 2 года назад +3

    You might put this code in the html head section:
    Without this code (or similar to this;) ) media query will not execute properly.

    • @boky7731
      @boky7731 2 года назад +2

      You forgot to add " Thank me later :D " after the last sentence

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

    You are amazing man, genuinely. Thank you for this channel.

  • @venkatanagasai1579
    @venkatanagasai1579 2 года назад

    This channel is making things easy for me.... Thanku soo much....

  • @jadavshanker9304
    @jadavshanker9304 4 года назад

    Your explanation was very clear and making good understanding

  • @ChrisAthanas
    @ChrisAthanas 3 года назад

    Great explanation
    Nice and short and to the point
    Max-width confused me now I get ir

  • @abelumoh5516
    @abelumoh5516 2 года назад

    Every time I come here , I learn something new!!😅

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

    Simple and straight forward.

  • @software-namibia
    @software-namibia Год назад

    Thanks for this lol. Youve saved me a ton of time trying to figure this out reading docs!

  • @abcdefg1492
    @abcdefg1492 3 года назад +1

    You nailed it bro... My knowledge after watching this, increased.

  • @awaisdesigner3075
    @awaisdesigner3075 4 года назад

    your explanation method is really good

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

    Excellent, it worked here. Thanks. My issue has been resolved.

  • @studyonly6972
    @studyonly6972 4 года назад

    you are the best tutor bro please keep uploading such videos

  • @varimedina5818
    @varimedina5818 4 года назад +19

    Thank you for this explanation. What program are you using where you change the size of the screen?

    • @gringo5282
      @gringo5282 4 года назад +21

      He's using Google Chrome Dev tools. You can open it by pressing CTRL + SHIFT + I and you can enable mobile view by pressing CTRL + SHIFT + M.

    • @beasta75
      @beasta75 4 года назад +5

      Google chrome, just right click your mouse and choose inspect elements

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

    My video tag was over the screen on my phone, tysmm!

  • @AshiqAli-ie5pm
    @AshiqAli-ie5pm Год назад

    It was really simplified. Thanks brother.