Search
Float an Element to the Bottom Corner
19.4.2021
Need to lay out an element to the right or the left, such that text wraps around it? That’s an easy task for the float property. But what about if you also want to push that element (let’s call it …
The post Float an Element to the Bottom Corner appeared first on CSS-Tricks.
You can support...
Text Outline Animation with Three.js
19.4.2021
Learn how to code the text outline effect seen on cornrevolution.com using Three.js with some GLSL.
The post Text Outline Animation with Three.js appeared first on Codrops
Creating an Editable Textarea That Supports Syntax-Highlighted Code
16.4.2021
When I was working on a project that needed an editor component for source code, I really wanted a way to have that editor highlight the syntax its typed. There are projects like this, like CodeMirror, Ace, and …
The post Creating an Editable Textarea That Supports Syntax-Highlighted Code...
Platform News: Using :focus-visible, BBC’s New Typeface, Declarative Shadow DOMs, A11Y and Placeholders
16.4.2021
There’s a whole lot of accessibility in this week’s news, from the nuances of using :focus-visible and input placeholders, to accessible typefaces and a Safari bug with :display: contents. Plus, a snippet for a bare-bones web component that supports …
The post Platform News:...
Not Your Typical Horizontal Rules
16.4.2021
The default browser style for <hr> is so weird. It’s basically:
border-style: inset;
border-width: 1px;
The default border-color is black, but the border doesn’t actually look black, because the inset border “adds a split tone to the line …
The post Not Your Typical...
Intl.NumberFormat
13.4.2021
Formatting numbers on the client side is an important task, especially when you consider how much raw API usage is in play these days. What’s also important is ensuring those numbers are meaningful to users, no matter where they are in the world, especially if you’re an eCommerce...
Someone Recovered The Code To Unlock A Full Version Of Timesplitters 2 In Homefront: The Revolution
10.4.2021
Back in 2016 players of Dambusters Studio’s Homefront: The Revolution easily found an Easter egg featuring two levels from 2002's Timesplitters 2. Now a code until recently thought lost has been recovered that unlocks a complete playable port of the time-traveling first-person shooter.Read more
The `ping` attribute on anchor links
8.4.2021
I didn’t know this was a thing until Stefan Judis’s post:
<a href="https://www.stefanjudis.com/popular-posts/"
ping="https://www.stefanjudis.com/tracking/"Read popular posts</a
You give an anchor link a URL via a ping attribute, and the browser will hit that URL with a...
SvelteKit is in public beta
7.4.2021
Rich Harris:
Think of it as Next for Svelte. It’s a framework for building apps with Svelte, complete with server-side rendering, routing, code-splitting for JS and CSS, adapters for different serverless platforms and so on.
Great move. I find …
The post SvelteKit is...
Some Articles About Accessibility I’ve Saved Recently
6.4.2021
“Good news about display: contents and Chrome” — Rachel Andrew notes that the accessibility danger of using display: contents; is fixed in Chrome. The problem was that, say you had a parent div that is laid out as a grid
…
The post Some Articles About Accessibility I’ve...
Tuesday's Best Deals: Apple Watch Series 6, HP Chromebook, M1 Mac Mini, Puyo Puyo Tetris 2, Cuisinart Food Processor, TaoTronics Massage Gun, and More
6.4.2021
Jump to: Tech | Gaming | Home | Lifestyle | MediaRead more
Gaps? Gasp!
6.4.2021
At first, there were flexboxes (the children of a display: flex container). If you wanted them to be visually separate, you had to use content justification (i.e. justify-content: space-between), margin trickery, or sometimes, both. Then along came grids (a …
The post Gaps? Gasp! appeared...
Definition Tag
5.4.2021
It’s <dfn. Jen Kramer is doing a #30DaysofHTML email list thing-y on Substack, which is an easy subscribe. It’s only been a few days and all of them have little gems, even for someone like me who likes to …
The post Definition Tag appeared first on CSS-Tricks.
You can support...
Monday's Best Deals: M1 MacBook Pro, Learn to Code 2021 Bundle, Persona 5 Strikers, Stainless Steel Stock Pots, Lisa Frank Cosmetics, Callaway Golf Sale, and More
5.4.2021
Jump to: Tech | Gaming | Home | Lifestyle | MediaRead more
Let’s Create an Image Pop-Out Effect With SVG Clip Path
2.4.2021
Few weeks ago, I stumbled upon this cool pop-out effect by Mikael Ainalem. It showcases the clip-path: path() in CSS, which just got proper support in most modern browsers. I wanted to dig into it myself to get …
The post Let’s Create an Image Pop-Out Effect With SVG Clip Path appeared first...
Free Bitcoin: Major US Fast Food Chain Chipotle Giving Away $100K in BTC to Celebrate National Burrito Day
1.4.2021
Chipotle Mexican Grill says it is giving away bitcoin and free burritos to celebrate National Burrito Day. The company has created a game where each participant will have 10 tries to guess a valid six-digit code for a chance to win a free burrito or up to $25,000 in bitcoin. Free Burritos...
You want margin-inline-start
30.3.2021
David Bushell in ”Changing CSS for Good“:
I’m dropping “left“ and “right“ from my lexicon. The new CSS normal is all about Logical Properties and Values […] It can be as easy as replacing left/right
…
The post You want margin-inline-start appeared first on CSS-Tricks.
You...
:where() has a cool specificity trick, too.
30.3.2021
There is a lot of hype on the :is() pseudo-selector lately, probably because now that Safari 14 has it, it’s supported across all the major browsers. You’ve got Miriam tweeting about it, Kevin Powell doing a video, Šime …
The post :where() has a cool specificity trick, too....
Tools for Auditing CSS
29.3.2021
Auditing CSS is not a common task in a developer’s everyday life, but sometimes you just have to do it. Maybe it’s part of a performance review to identify critical CSS and reduce unused selectors. Perhaps is part of effort …
The post Tools for Auditing CSS appeared first on CSS-Tricks.
You...
Cathie Wood: BTC investors shouldn’t transact until tax code changed
25.3.2021
Selling or transacting your Bitcoin isn’t worth the tax burden, according to the CEO of Ark Invest