How to write media queries in CSS

  Рет қаралды 32,832

Coder Coder

Coder Coder

Күн бұрын

Пікірлер: 61
@mind_of_a_darkhorse
@mind_of_a_darkhorse 3 жыл бұрын
One other reason I found out to use EM's in Media Queries is that different browsers handle REM's for screen sizes differently, especially Safari. EM's seem to be handled the same across the field of browsers. Just an FYI for those who are interested. So the gist is to use REMs for fonts, but EMs for Media Queries.
@husseinkizz
@husseinkizz 3 жыл бұрын
keep up the good work Jessica, I like your energy and charisma when on camera. really playful and free, keep up!
@arturoordonez-hernandez8750
@arturoordonez-hernandez8750 2 жыл бұрын
I wish I would have seen this tutorial sooner.
@GarmrZero13
@GarmrZero13 4 жыл бұрын
Never thought of using ems in media queries, thanks for the insight!
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
You're welcome!
@rosaclovis
@rosaclovis 4 жыл бұрын
I like this type of video a lot! Good to see you back here. Looking forward for some live coding using SCSS and some more hot tips. Go on girl!
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
Thanks! Yes, there will be a live coding in the near future :D
@borisnefyod4868
@borisnefyod4868 2 жыл бұрын
But why do you use EMs and not REMs for your breakpoints?
@martintomson8322
@martintomson8322 4 жыл бұрын
Thank you for the content! Do you concider using F# additionally?
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
I don't know F#, sorry!
@mawkuri5496
@mawkuri5496 3 жыл бұрын
why this is better than indian tutorials in udemy
@shivanshpatel4072
@shivanshpatel4072 3 жыл бұрын
Wow Awesome 👍
@rohil3023
@rohil3023 4 жыл бұрын
Great Video!
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
Thank you!
@jonasvanroy6641
@jonasvanroy6641 3 жыл бұрын
wie is hier door meneer vandersmissen?
@michaelhofby
@michaelhofby 4 жыл бұрын
Please upload new videos soon?? We are missing your face
@ketchemjunior5490
@ketchemjunior5490 3 жыл бұрын
i seriously need help with applying media queries.. please anyone drop your Twitter handel and i will send you a photo of what i did i plese someone tell me where i went wrong... please 😭😭😭😭
@israrahmed4228
@israrahmed4228 3 жыл бұрын
❤️ from 🇵🇰
@thesmartest1919
@thesmartest1919 4 жыл бұрын
Thank you . I was procrastinating on learning media queries I had impression that it's complicated😅. Ur explanation made it clear👌🌷
@tonimacb9647
@tonimacb9647 2 жыл бұрын
Hey.. hello. I have a question. I prefer to start on a desktop device to phone devices so, I code max-width:1200;,,,,, 1024,,,, 768,,,,, and the last one 480..... Leaving the main code out for bigger devices.... Is that right..?? Please help me out.. Great video by the way... I love them....
@sushantbajracharya5516
@sushantbajracharya5516 4 жыл бұрын
you are a very kind human for keeping an ad in the end.
@GabrielKakeKake
@GabrielKakeKake 4 жыл бұрын
Hi! Please help meeeeeeee 🙏🏻 i've got this: h1 { font-size: 1.75em; @media (min-width: 43.75em) { font-size: color: yellow; } } The text changes color to yellow (meaning it is correctly linked) but the font-size does not change at all! I tried px, rem, em ... nothing works. Can anyone explain this?
@rvasko8747
@rvasko8747 3 жыл бұрын
This video comes at top of the search result but the info is hard to digest.. less talk more practical approach would've done the job...
@muhammadsaeed3233
@muhammadsaeed3233 4 жыл бұрын
Wow Great tutorial... Tbh its my first tutorial from female. 😍 Great works wishing more tutorials
@colindante5164
@colindante5164 3 жыл бұрын
By far the best video explaining media queries and for this we are all very grateful. Thankyou))
@whitebear224
@whitebear224 3 жыл бұрын
This was a great explanation! And the last part about ems and rems was really helpful!
@ketchemjunior5490
@ketchemjunior5490 3 жыл бұрын
pleaseeeee... i just subcribed ro you chanell so u can help me... this thing is pissing me off real bad!!
@FaradayAcademy
@FaradayAcademy 4 жыл бұрын
This is great. I'm sharing it with our students.
@waqarali191
@waqarali191 Жыл бұрын
why media queries effects the original design?
@bF93712
@bF93712 4 жыл бұрын
Hi, another awesome video! TX for the tips! Also, I want to thank for the video on stacking context, that video helps me a lot of understanding z-index and positioning! I have a few questions regarding this video if you have the time to answer them: 1) There is any difference in using em vs rem on the min-widht on the media queries? I understand that ems for widths takes the "current elements computed font-size" as reference and rems takes always the "root computed font-size" but I'm confuse if there is any differences in the case of media queries ( me personally I always use rems on media queries min-width property ) 2) What do you think on the technique about using 62.5% for the font-size used time ago, to simulate a font-size of 10px and working with rem across the elements and taking that 10px = 1rem as a reference? Again: Thank you a lot for your videos, you are a great instructor!
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
Hi Bruno, thanks for watching! 1) For em vs rem, I'm not sure what the difference would be for media queries, but I've only seen people use em's, not rems. That doesn't mean it won't work with rems, but there might be a reason for that? 2) I've heard of people using that a lot, but I prefer to try to stick with using the browser default. It's a pain to convert, but I usually create a set of font sizes and save them as Sass variables. That way I can just pick the one I want to use each time. Hope this helps!
@Oguztogrul
@Oguztogrul 3 жыл бұрын
What means flex: 1 0? I know, 75% and 25% are percent of size. What about 1 and 0?
@jubomdivnishvili8638
@jubomdivnishvili8638 3 жыл бұрын
Hello, I just discovered your channel and I’m very lucky...... btw which theme are you using?
@gregorythompson8873
@gregorythompson8873 3 жыл бұрын
I am trying to find a CSS code to print a specific section in an elementor page. Do you have any ideas? Thank you
@captaindesign
@captaindesign Жыл бұрын
I've been searching for the font you use in your code editor, but with no luck. Any chance you could share the name?
@TheCoderCoder
@TheCoderCoder Жыл бұрын
I don't remember what I used in this video, but I currently use "Consolas, 'Courier New', monospace" I think the default? I might have also been using Fira
@captaindesign
@captaindesign Жыл бұрын
@@TheCoderCoder that's unfortunate, I really appreciate the reply though. I tried Consolas, Courier New, Fira, Operator Mono, Inconsolata, JetBrains Mono, and it's none of them. Oh well, maybe one day I'll find it 😅
@jacobashwinmathew3763
@jacobashwinmathew3763 3 жыл бұрын
Love from india ❤️ di
@pranavgoel29
@pranavgoel29 4 жыл бұрын
Really great explanation loving it and finally new videos are coming 😄
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
Thanks! Will keep trying :)
@crismonteiro838
@crismonteiro838 3 жыл бұрын
Hey can someone explain me why we remove the media query in main and aside (11:27-11:37)
@DavidTheITGuy.
@DavidTheITGuy. 3 жыл бұрын
Thanks alot dear
@100XPercentX
@100XPercentX 4 жыл бұрын
Can you do a tutorial on how to place something on the right, two column layout? Like how websites typical have text on the left then some pic on the right
@MrRetroVinyls
@MrRetroVinyls 3 жыл бұрын
black cursor ?!
@iamdanyaal
@iamdanyaal 3 жыл бұрын
Thank You Ma'am
@amazighshawiagirl7416
@amazighshawiagirl7416 3 жыл бұрын
Great
@dariomilani8382
@dariomilani8382 2 жыл бұрын
thank you this was really clear and really helpul, I love your tutorials
@samirsamir7779
@samirsamir7779 3 жыл бұрын
definitly great your explanations ! thank you
@najehmansouri1580
@najehmansouri1580 4 жыл бұрын
Can’t wait your reactjs video...
@remax110
@remax110 4 жыл бұрын
I came across your channel and I like your content and teaching style. Thank you.
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
Thanks! I'm glad it can help you!
@najehmansouri1580
@najehmansouri1580 4 жыл бұрын
Very helpful, thank you
@favouritejome
@favouritejome 4 жыл бұрын
Nice one
@thespeaktv1221
@thespeaktv1221 4 жыл бұрын
Love you Jessica
@thespeaktv1221
@thespeaktv1221 4 жыл бұрын
Awesome
@JJ-wt4xv
@JJ-wt4xv 3 жыл бұрын
LOVE THIS!!!
@sumanth8296
@sumanth8296 4 жыл бұрын
Make videos on Gatsby jassica chan
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
sorry I don't know Gatsby 😂
@sumanth8296
@sumanth8296 4 жыл бұрын
Mention that vs code theme please
@TheCoderCoder
@TheCoderCoder 4 жыл бұрын
It's a custom one I'm working on, will post when it's complete!
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 170 М.
px vs rem: what to use for font-size in your CSS
16:11
Coder Coder
Рет қаралды 50 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 9 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 27 МЛН
5 simple tips to making responsive layouts the easy way
15:54
Kevin Powell
Рет қаралды 768 М.
How to make your website responsive
39:13
Coder Coder
Рет қаралды 22 М.
How to use CSS position to layout a website
17:20
Coder Coder
Рет қаралды 31 М.
Media Query in CSS [Easiest Way] | How To Write Media Queries FAST
7:33
Learn how to use Media queries & Container queries
34:33
Kevin Powell
Рет қаралды 72 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 526 М.
Learn web development as an absolute beginner
12:57
Coder Coder
Рет қаралды 2,9 МЛН
Are you using the right CSS units?
6:30
Kevin Powell
Рет қаралды 456 М.
Купил ПЕРВЫЕ iPhone 16 и AirPods 4 в Apple Store!
15:27
ВШИВЫЙ ИГРОВОЙ ПК с WB за 58000 тысяч рублей
22:48
iPhone 16
0:20
Adhemz
Рет қаралды 12 МЛН
Самые крутые школьные гаджеты
0:46
Игровой руль - штука годная 👍
0:50
RxFx
Рет қаралды 3,8 МЛН