Tutorial: Learn how to use CSS Media Queries in less than 5 minutes

Tutorial: Learn how to use CSS Media Queries in less than 5 minutes

Kevin Powell

7 лет назад

398,733 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Alex Abreu
Alex Abreu - 05.10.2023 01:42

Hey kev keep the others up as well as this format please. Love from DR

Ответить
Mohammad Roostaei
Mohammad Roostaei - 04.10.2023 11:45

"Cum sociis"

Ответить
Koen Stoopendaal
Koen Stoopendaal - 02.10.2023 22:19

cool except for the fact that nun of this works i do the same thing you do and it doesnt work, on to the next vid

Ответить
Info Maker
Info Maker - 09.09.2023 11:41

this great

Ответить
Owais Rao
Owais Rao - 19.08.2023 10:24

i really like your idea of short time videos

Ответить
Prince Nsude
Prince Nsude - 10.08.2023 17:13

how can stay longer than 30min when coding

Ответить
Firebrand VOCALS
Firebrand VOCALS - 07.08.2023 20:31

Is it best practice to design for Mobile First then work up to desktop?
Cheers!

Ответить
maroof free
maroof free - 23.07.2023 12:44

udar

Ответить
B_32 Sunny Meghrajani
B_32 Sunny Meghrajani - 22.07.2023 16:31

Can you explain this for images actually i have make a portfolio.
Now its completed but i don't know how to make image and all stuf responsive 😅

Ответить
GorritoLife
GorritoLife - 30.06.2023 12:21

the part about how to make css for print porpoises intrigme. could you expand on that?

Ответить
Alan Williams
Alan Williams - 18.06.2023 20:54

Kevin, I love all your content. I learn better by following along and replicating. Please make sure we can see all html and css (I can here) and images if you use them. Thank you :)

Ответить
Sebastian Zapata Gutierrez
Sebastian Zapata Gutierrez - 15.06.2023 01:12

Thank you!

Ответить
חזקיהו עמנואל
חזקיהו עמנואל - 04.06.2023 04:28

Wonderful tutorial short, and to the point, thank you!

Ответить
Cristian Daniel Ojeda
Cristian Daniel Ojeda - 19.05.2023 02:00

Hello, good morning, your tutorials are very good, but I have a problem with the media query to go from web size to convert it to mobile. The problem is that it doesn't take the value of each measure of the width of the page for the mobile size. I can send you the project so you can tell me what could be the problem. I can send you the project I have it on Github

Ответить
Bukky Odunsi
Bukky Odunsi - 17.04.2023 10:22

This is wonderful

Ответить
George Olid
George Olid - 17.03.2023 12:21

How do I replicate your way of enlarging and shortening the screen?

Ответить
Dominic Domingo
Dominic Domingo - 02.03.2023 13:43

Now I know why there is no changes with my media query it is that because of that thank you for this !

Ответить
Hana c
Hana c - 19.02.2023 19:35

Thankies :)

Ответить
anthonia balogun
anthonia balogun - 30.01.2023 02:03

Simple and straight forward

Ответить
Viajes Culinarios
Viajes Culinarios - 29.12.2022 02:51

You made me hit the like button

Ответить
DeltaV THRUST TNT
DeltaV THRUST TNT - 10.12.2022 10:29

Until your consice and logical explanation I struggled with media queries. Good job. Looming forward to more from your channel.

Ответить
Gary Reid Backing Tracks
Gary Reid Backing Tracks - 29.11.2022 02:49

Liked! Heading to your "5 simple tips to making responsive layouts the easy way" vid...
Taking a FEWD Class and my biggest concern is that by the time I finish the course there'll be 800 more hacks I need to know, so I'm fully subscribed to your channel.

Ответить
Jason Barnes
Jason Barnes - 20.11.2022 10:48

great explanation of why to use max-width over min-width and vice versa. I never understood why to use min-width, but designing mobile first makes sense.

Ответить
Lukas Eierdal
Lukas Eierdal - 03.10.2022 00:38

I appriciated it a lot with just 5 mins. As you say if you just need a quick info to move on in the project, it's a hell to watch 25 mins to be sure not to miss anything important :)

Ответить
KC
KC - 29.09.2022 03:57

Hello, how was the responsive frame made ? Is it coded through css or is it part of the web dev tools in the browser?
Thank you for your help

Ответить
Had Jinde
Had Jinde - 21.09.2022 16:11

Tu expliques un peu trop rapide

Ответить
Sara Bojorge
Sara Bojorge - 28.08.2022 12:27

Great video, straight to the point and clear content. Thanks Kevin

Ответить
dzu test
dzu test - 19.08.2022 00:36

This is old but trust me, Kevin's advice has always been futuristic. This still works 6 years later

Ответить
Liina
Liina - 28.07.2022 17:56

Thank you so much. It helped alot. very straight forward, clear and short.
-IT student

Ответить
Samir khan
Samir khan - 21.07.2022 09:54

Everthing was wonderfull and full informative.

Ответить
Nas Pre
Nas Pre - 18.07.2022 02:31

Thank you!

Ответить
Hiddenberg
Hiddenberg - 13.07.2022 22:21

This is awesome, but how do you use it in projects, for example do you create a single file with all the media queries required, or is it better to add them for each component?

Ответить
Nathalie Ferreira
Nathalie Ferreira - 23.06.2022 12:21

wow!! thank you sooo much teacher!!

Ответить
David Sampson
David Sampson - 16.06.2022 07:43

Kevin... This seems to only work in firefox (not Chrome). I define all of my media queries so that they only have the "max-with" value and the presumption is that all of the queries together function as a "range" limit.

@media (min-width: 80rem) {
header::before {
content: "min-width: 80rem";
}
}


@media (max-width: 80rem) {
header::before {
content: "max-width: 80rem";
}
}

@media (max-width: 60rem) {
header::before {
content: "max-width: 60rem";
}
}

@media (max-width: 40rem) {
header::before {
content: "max-width: 40rem";
}
}

@media (max-width: 20rem) {
header::before {
content: "max-width: 20rem";
}
}

This simplifies the query and if I place them in this order it seems to work fine in Firefox but something breaks in Chrome.

I guess the feedback I want to get from you is whether this approach is common or is known to not work or...

I hate the idea of having to define the ranges including the minimum as well.

Ответить
Kate Downs
Kate Downs - 16.06.2022 02:13

This changed everything. Thank you.

Ответить
Tarun Mishra
Tarun Mishra - 04.06.2022 16:27

Is this video relevant in 2022?

Ответить
Ayinde Perouza
Ayinde Perouza - 16.05.2022 00:25

hi Kevin, i am new at this stuff, how do you know which media query to use/choose. i was doing a challenge for a portfolio but got stuck by the media query--the code was
@media (width:200) {
body{
font-size: 10px;
}---------------------------------thanks for any feedback

Ответить
Bova Ladusika
Bova Ladusika - 29.04.2022 08:23

The video is super helpful,,, thanks bro

Ответить
Saurabh Prakash
Saurabh Prakash - 23.04.2022 21:37

Awesome video

Ответить
Min
Min - 05.04.2022 23:35

This helped heaps, thanks!

Ответить
Teri_Meri_kahani
Teri_Meri_kahani - 06.03.2022 20:55

It was good. I liked it.

Ответить
CodeInnit
CodeInnit - 03.02.2022 10:05

Great video as always.

Ответить
B
B - 27.01.2022 02:48

I'm here! 😎 Great video, just posting a comment to show some support! Keep up the good work. 🤙

Ответить
H 2390
H 2390 - 09.01.2022 23:54

Kevin Powell is the CSS Hyper-Loop

Ответить
William Castro
William Castro - 07.01.2022 09:22

Could you please explain how to properly use the DIV tag in less than 5 mins? I am having trouble learning this, thank you.

Ответить
Rey Ban YAHUAH
Rey Ban YAHUAH - 29.12.2021 05:26

Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins!

Come to HIM🙂🙂🙂🙂🙂🙂🙂🙂

Ответить
itskatytoday
itskatytoday - 19.12.2021 03:16

wow, this is fast and easy to understand!

Ответить
OrincyWhyteDesigns
OrincyWhyteDesigns - 12.11.2021 17:11

I wanna be like Kevin when I grow up!!! A css ninja

Ответить
Dale Salcedo
Dale Salcedo - 06.11.2021 14:16

love this 5 minute format. as an experienced coder i don't need the long version. ty

Ответить
T 25
T 25 - 03.11.2021 23:17

the dislike ratio is astounding

Ответить