No video

In-Depth Guide to CSS Logical Properties

  Рет қаралды 7,275

CSS Weekly

CSS Weekly

Күн бұрын

Пікірлер: 44
@guillermomf
@guillermomf Жыл бұрын
Good video. These days I was learning about these concepts and how to use them and your video has helped me so much 👍🏼👍🏼
@CSSWeekly
@CSSWeekly Жыл бұрын
Thank you so much, Guillermo! I'm thrilled to hear this video has helped you! 🙏🥰
@markrobbins6985
@markrobbins6985 Ай бұрын
Great video. I'm going to start using logical properties in all my designs.
@CSSWeekly
@CSSWeekly Ай бұрын
I’m thrilled to hear this, Mark! 🙂 It takes quite some time to get used to it, so be patient with yourself during the transition period. 🙂
@SteinGauslaaStrindhaug
@SteinGauslaaStrindhaug 2 ай бұрын
Sounded unfamiliar at first, but then I realised I'm actually very used to it already from flex layout. I now actually wish they also used "inline" and "block" for flex-direction too, because I can never remember which is which of "column" and "rows" 😅 But I do remember which way we read and I have internalised the meaning of "inline" as along the line of the text and "block" as perpendicular to that direction from using the display property for about 20 years now.
@CSSWeekly
@CSSWeekly 2 ай бұрын
I'm so happy to hear this, Stein! 🙏 Both grid and flex use the logical instead of directional principles, so it should feel familiar. Although, I still find it weird to write inset-inline-start. 🙂 The problem with flex and the flexis axis (main and cross) is that they're switching. I even made a short video about to finally remember if I need justify-content or align-items. 🙂 (Here's the link if you want to check it out: kzfaq.infoo1CNbB_yGUE)
@dschony
@dschony 11 ай бұрын
Thanks! This is a real update in CSS for me. I'm starting to use it immediatly.
@CSSWeekly
@CSSWeekly 11 ай бұрын
Thank *you* for watching and commenting, Daniel! 🙏 I’m thrilled to hear that you learned something new! 🙂
@steventanner7395
@steventanner7395 Жыл бұрын
I believe logical properties will be simpler once I become accustomed to them. Thank you for this presentation.
@CSSWeekly
@CSSWeekly Жыл бұрын
They surely will. It takes a bit of time to get used to this new model, but once it “clicks,” you won’t even think about them. 🙂 Thanks so much for this comment and your kind words, Steven! 🙏
@muscimilieng
@muscimilieng Жыл бұрын
Very interesting, didn't knew about these
@CSSWeekly
@CSSWeekly Жыл бұрын
Thanks for your comment! I'm happy to hear that you've learned something new from this video. 🙂
@martunjaykumar752
@martunjaykumar752 10 ай бұрын
Good one, thanks for sharing.
@CSSWeekly
@CSSWeekly 10 ай бұрын
Thank you so much, Martunjay! I'm thrilled to hear this! 🙂
@ajdrag
@ajdrag Жыл бұрын
Great video. Keep them coming! Thank you.
@CSSWeekly
@CSSWeekly Жыл бұрын
Thank you so much! I most certainly will! 🙂
@picturit
@picturit Жыл бұрын
Have been using them for quite some time now. Good presentation! 👍
@CSSWeekly
@CSSWeekly Жыл бұрын
Thank you so much, Hans! It means a lot! 🙏
@FunDumb
@FunDumb Жыл бұрын
TRBL: Top, Right, Bottom, Left. Troublesome paddings and margins. Barney Rubble, TRBL!
@CSSWeekly
@CSSWeekly Жыл бұрын
Indeed! Top, Right, Bottom, Left are trouble logically and performance-wise. 🙂
@ZiaCodes
@ZiaCodes Жыл бұрын
Where can i find css logical values like vb vi you used? So much value in single video,Appreciate it!
@CSSWeekly
@CSSWeekly Жыл бұрын
Thank you so much for your kind words, I'm thrilled to hear you found it valuable! 🙏 For some reason, they're not mentioned on MDN's Logical Properties & Values page, but they are here, in the table under "Relative length units": developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#relative_length_units
@saifashraf2135
@saifashraf2135 Жыл бұрын
This is super cool, thank you for sharing!
@CSSWeekly
@CSSWeekly Жыл бұрын
Thank you so much, Saif! I'm thrilled to hear that you found it super cool! 🙂
@JeffKlunder
@JeffKlunder Жыл бұрын
Haven't heard of this logical properties thing; looks interesting. Thing that comes to mind: if you're 100% sure you only will have left to right writing, is it still best practice to replace the margin-right/left stuff?
@CSSWeekly
@CSSWeekly Жыл бұрын
That's an interesting question, Jeff. 🙏 I wouldn't immediately replace all my code with logical properties in that case, but for new code, or a new project, it is probably a good idea to start thinking in terms of logical properties. All new properties that will come to CSS will be logical, like with CSS Grid, for example, so in the long run, you'll certainly benefit from adopting the logical mindset. 🙂
@JeffKlunder
@JeffKlunder Жыл бұрын
@@CSSWeekly Ah, sounds reasonable. Thanks for the reply and keep these awesome videos coming 👍
@CSSWeekly
@CSSWeekly Жыл бұрын
Thanks you so much for commenting and watching, Jeff! 🙂
@D7460N
@D7460N Жыл бұрын
This is so good. Thank you.
@CSSWeekly
@CSSWeekly Жыл бұрын
Thanks so much! It means a lot! 🙏
@badcatdesign
@badcatdesign Жыл бұрын
Noooooo..... still feels "illogical" 🖖 I always identified with the "TRouBLe" TRBL of CSS.
@CSSWeekly
@CSSWeekly Жыл бұрын
It certainly takes a bit of time to get used to it. But it's surely worth it. 🙂
@badcatdesign
@badcatdesign Жыл бұрын
@@CSSWeekly The hardest part for me is losing shorthands for margin and padding.
@CSSWeekly
@CSSWeekly Жыл бұрын
Yes, I agree with that. 😕 There is an open issue for shorthands: github.com/w3c/csswg-drafts/issues/1282 So hopefully this will be added to browsers sometime soon. 🙂
@neekfenwick
@neekfenwick Жыл бұрын
I agree, however if you've used flex layout much you'll be used to thinking about the 'start' and 'end' of a layout, and if direction is row or column they adjust logically in a similar way to these logical properties. This is the first I've seen of these logical properties, and to be honest I only develop for ltr Western layouts, but it would be good to practise them if they are well supported in browsers :)
@CSSWeekly
@CSSWeekly Жыл бұрын
Sorry Nick, I'm only now seeing this. 😔 Great points about flex. And if we get more new properties that work logically, it's proabaly worth getting used to the this paradigm. 🙂 And browser support is pretty good: caniuse.com/?search=logical
@pf2174
@pf2174 Жыл бұрын
Talking to fast ...
@CSSWeekly
@CSSWeekly Жыл бұрын
Thanks so much for your feedback! 🙏 Do you mean literally that I talk so fast it's hard to follow, or is the content generally progressing too fast?
@pf2174
@pf2174 Жыл бұрын
@@CSSWeekly A bit of both ... ;)
@CSSWeekly
@CSSWeekly Жыл бұрын
Got it! Thanks again! 🙂
@zbjz
@zbjz Жыл бұрын
Meanwhile I'm watching at 2x speed, better to speed up a slow video though as slowing down reduces quality of video
@CSSWeekly
@CSSWeekly Жыл бұрын
Thanks for sharing your perspective as well, Zach! 🙏
Create a Direction Aware Hover Effect Using CSS :has() Selector
10:25
Write better CSS using logical properties
20:40
Kevin Powell
Рет қаралды 50 М.
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 16 МЛН
Yum 😋 cotton candy 🍭
00:18
Nadir Show
Рет қаралды 7 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 3,1 МЛН
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН
Simplify Your CSS Using :is() and :where() Pseudo-Classes
9:22
CSS Weekly
Рет қаралды 1,6 М.
We can now transition to and from display: none
21:20
Kevin Powell
Рет қаралды 98 М.
Single CSS keyframe tricks are magic
52:02
Bad at CSS
Рет қаралды 7 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 179 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 168 М.
Flexbox or Grid challenge // which would you use to solve these?
25:27
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Web Dev Simplified
Рет қаралды 367 М.
Avoid these 5 beginner CSS mistakes
21:38
Kevin Powell
Рет қаралды 82 М.
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 408 М.
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 144 М.
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 16 МЛН