CSS Basics (@cssbasics) header
CSS Basics (@cssbasics) profile picture

Moved: https://xitter.gq/t.co/pa5BBRgwwt or https://xitter.gq/t.co/mjc1Ujn78R

Portland, OR
Joined March 2018
Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)Photo by CSS Basics (@cssbasics)
CSS Tip! 🚀 You can select the previous siblings of an element with :has() to create cool hover effects like this OS dock🔥 No JS 😎 :root{--lerp-1:0.525;} a:has(+a:hover){ --lerp:var(--lerp-1); translate: 0 calc(var(--lerp) * -75%); } Demo link and explanation below! 👇
46
477
33
3,463
Tip: Shave up to 90% off the size of Google Fonts by declaring only characters you need with &text: https://xitter.gq/t.co/UNG4W0x01v. If self-hosting, see https://xitter.gq/t.co/Ps3V5xmMqu
20
273
31
1,427
CSS Scroll Snap: https://xitter.gq/t.co/6qkWfvlnCK ~ lock the viewport to certain elements after the user finishes scrolling. Ace for advanced interactions. Also see https://xitter.gq/t.co/Q5AiH2lPTn to learn more. h/t @argyleink @una @maxkoehler
11
245
8
1,674
CSS Basics retweeted
As a web developer this is one of the happiest announcements in a while: Google Search ended support for IE11 in its main product 🎉 (you can still search but will get a fallback experience). I'm mostly posting this so you can send it to your boss 😛. We did the Math. It is time.
58
855
174
4,053
CSS Basics retweeted
🤓 Did you know? That there is an excellent reason to use #CSS Position Sticky with top and bottom combined if the sticky element is stacked in the middle, example: .sticky-item{ Position: Sticky; top: 0; bottom: 0; } @CodePen: codepen.io/elad2412/pen/ExNK…
6
68
2
454
#HTML/#UX tip for today: Setting `autocomplete="one-time-code"` will allow your user to fill the input field with the auth code they've just received - without the need to manually copy it from a message.
38
1,001
237
4,539
CSS isn’t arbitrary
6
126
5
688
How to build awesome forms with only HTML & CSS: 🧵A Thread🧵
45
727
47
2,623
vertical-align
5
120
2
671
vendor prefixes
7
88
488
CSS grid areas
14
289
13
1,483
CSS != design
23
266
24
1,270
CSS variables
42
984
41
4,621
You can swap images based on the OS color scheme directly inside #HTML by using the tag `<picture>` 🔥
6
224
13
1,006
z-index & stacking contexts
7
230
11
1,085
CSS isn’t easy
30
542
50
2,578
centering in css
55
828
68
4,007
CSS backwards compatibility
3
164
4
906
padding & margin syntax
19
206
9
1,052
CSS Basics retweeted
My incomplete mental model for flexbox's main axis
25
500
27
2,422