CSS Logical Properties: A good use case

  Рет қаралды 6,567

Wes Bos

Wes Bos

Күн бұрын

Пікірлер: 7
Жыл бұрын
The important consideration is that people may translate your website to a non left-to-right script. So it doesn’t really matter that someone’s website is in English and only in English. If a visitor translates it to Arabic, which is right-to-left, the layout will be broken unless the website uses logical properties.
@IainSimmons
@IainSimmons Жыл бұрын
They are also useful for setting padding or margins on two sides instead of just one, without having to specify or override others. A good use case is having margin-inline: auto (left and right for horizontal writing modes) and then only adjusting margin-block for specific elements and not having to worry about either setting top and bottom or accidentally breaking the left and right margins.
@quintennn
@quintennn Жыл бұрын
You keep blowing my mind with these Wes insanity
@ragibshariar7789
@ragibshariar7789 Жыл бұрын
editor theme name?
@yyydollars8456
@yyydollars8456 Жыл бұрын
Do you think that I always should use logical properties?
@bucztechph
@bucztechph 5 ай бұрын
no u shouldnt, acutally u should not use them at all
@shrutikapoor08
@shrutikapoor08 Жыл бұрын
Neat trick!
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,2 МЛН
Stop using position absolute - use CSS Grid stacking!
4:42
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 184 М.
Error handling in TypeScript. How to avoid exceptions.
6:11
Beyond TypeScript
Рет қаралды 3 М.
Why did OpenAI move from Next.js to Remix?
10:41
Wes Bos
Рет қаралды 197 М.
Exploring Abandoned Games From Your Childhood
20:00
globert
Рет қаралды 49 М.
This CSS Backlight Effect is so damn cool!
3:18
Wes Bos
Рет қаралды 16 М.
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 368 М.
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
Custom dropdowns just got a whole lot easier (finally!)
4:33
Coding apps with English
14:05
Wes Bos
Рет қаралды 25 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН