Search
Mastering theme.json: You might not need CSS
18.10.2024
I totally get the goal here: make CSS more modular and scalable in WordPress. Put all your global WordPress theme styles in a single file, including variations. JSON offers a nicely structured syntax that’s easily consumable by JavaScript, thereby allowing …
Mastering theme.json:...
CSS Anchor Positioning Guide
2.10.2024
Learn about CSS Anchor Positioning, including its syntax, properties, how it is used to position one element next to another, and even how it's used to resize elements relative to other elements.
CSS Anchor Positioning Guide originally published on CSS-Tricks, which is part of the DigitalOcean...
Quick Hit #19
19.9.2024
Two possible syntaxes for CSS masonry, one draft specification, and you get to share your opinions.
…
Quick Hit #19 originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter
AI Bot 'Syntax' From Spectral Labs Could Help Non-Coders Write Ethereum Apps
26.3.2024
For the tech to gain steam, Spectral may need to convince users that AI can be trusted with their digital assets
Help choose the syntax for CSS Nesting
20.12.2022
CSS Nesting is making the rounds yet again. Remember earlier this year when Adam and Mia put three syntax options up for a vote? Those results were tallied and it wasn’t even even close.
Now there’s another chance …
Help choose the syntax for CSS Nesting originally published...
What CSS Do You Absolutely Have to Know in 2022?
8.11.2022
Sacha Greif openly wondered whether CSS has gotten to be, you know, too big. With all the goodies that’ve shipped in browsers the past couple of years — container queries! relative color syntax! cascade layers! logical properties…
What CSS Do You Absolutely Have to Know in 2022?...
The New CSS Media Query Range Syntax
31.10.2022
The Media Queries Level 4 specification has introduced a new syntax for targeting a range of viewport widths using common mathematical comparison operators, like , and =, that make more sense syntactically while writing less code for responsive web design.
The New CSS Media Query Range Syntax...
CSS Rules vs. CSS Rulesets
21.9.2022
The latest spec:
A style rule is a qualified rule that associates a selector list with a list of property declarations and possibly a list of nested rules. They are also called rule sets in CSS2.
Louis Lazaris:
As the above quote from W3C indicates...
Collective #727
1.9.2022
VRSEAT * Nutshell * Bespoke WebGL Postprocessing * Headway * Use the Right Container Query Syntax
Why (and How) I Write Code With Pencil and Paper
17.8.2022
If the thought of handwriting code seems silly, it might surprise you to know that it’s inevitable. If you’re unsure, think about the last job interview you did, and remember how there was no computer around in the interview room …
Why (and How) I Write Code With Pencil and Paper...
Syntax Highlighting (and More!) With Prism on a Static Site
4.5.2022
So, you’ve decided to build a blog with Next.js. Like any dev blogger, you’d like to have code snippets in your posts that are formatted nicely with syntax highlighting. Perhaps you also want to display line numbers in the …
Syntax Highlighting (and More!) With Prism on a Static...
JavaScript Class Privates
1.2.2022
One of my aspects of JavaScript that drew me to it as a young developers was that its syntax was loose and I could code quickly. As you gain experience as an engineer, you start to realize that some traditional coding structure is a good thing, even if it slows you down. Using Jest or […]
The...
Array.prototype.at
8.11.2021
Working with arrays is an essential skill in any programming language, especially JavaScript, as we continue to rely on external data APIs. JavaScript has added methods like find and `findIndex recently, but one syntax I love from languages like Python is retrieving values by negative indexes. When...
Cash (Tiny jQuery Alternative)
11.10.2021
The README for Cash is straightforward:
Cash is an absurdly small jQuery alternative for modern browsers (IE11+) that provides jQuery-style syntax for manipulating the DOM. Utilizing modern browser features to minimize the codebase, developers can use the familiar chainable methods
…
The...
imba
20.9.2021
It’s not every day you see a new processor for building websites that reinvents the syntax for HTML and CSS and JavaScript. That’s what imba is doing.
That’s an awful lot of vendor lock-in, but I guess if you get …
The post imba appeared first on CSS-Tricks. You can support...
target=”blank”
9.6.2021
Does that make your eye twitch a little bit? Like… it’s a typo. It should be target="_blank" with an underscore to start the value. As in…
<a target="_blank" href="https://codepen.io"Open CodePen in a New Tab
</a
Welp, that’s correct syntax!…
The post...
Euismod
17.5.2021
An interactive tool for learning grid syntax from Etesam Ansari. In the Learn section, it teaches you some concepts (involving multiple bits of the grid syntax) then gives you a task to complete by filling out the right syntax. I’m …
The post Euismod appeared first on CSS-Tricks.
You...
CSS Pie Timer Re-Revisited
12.5.2021
Kitty reflected on an ancient blog post here on CSS-Tricks on how to make an animated pie timer. The old technique is still clever. The new technique is equally clever and much easier. I particularly like the steps() animation function…
The post CSS Pie Timer Re-Revisited appeared first...
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...
React Without Build Tools
3.3.2021
Jim Nielsen:
I think you’ll find it quite refreshing to use React A) with a JSX-like syntax, and B) without any kind of build tooling.
Refreshing indeed:
CodePen Embed Fallback
It’s not really the React that’s the hard part …
The post React Without Build Tools appeared first...