Search
Buggy Code Release Knocks 13% of Ethereum Nodes Offline
27.8.2020
Over 1,000 Ethereum nodes will have to resync or find a new client provider after a critical bug in OpenEthereum’s codebase was revealed
This vs. That
24.8.2020
Here’s a nice site from Phuoc Nguyen, who I’ve noted before has quite a knack for clever sites. This vs. That pits different related concepts against each other as a theme for an article. For example, CSS has display: none;, opacity: 0;, and visibility: hidden; and they all, on...
Brazilian Crypto Companies to Self-Regulate: Target a $100 Billion Market by Year-End
24.8.2020
Brazilian crypto companies have signed a code of self-regulation that aims to legitimize and to boost adoption of crypto assets in the country. The document was signed under the auspices of Abcripto, the country’s association of cryptocurrency companies. According to regional media reports...
Offering Options for mailto: and tel: Links
21.8.2020
I generally like mailto: links. But I feel like I can smell a mailto: link without even inspecting or clicking it, like some kind of incredibly useless superpower. I know that if I’ve got my default mail client set, clicking that link will do what I want it to do, and if I want, I...
A CSS-only, animated, wrapping underline
21.8.2020
Nicky Meuleman, inspired by Cassie Evans, details how they built the anchor link hover on their sites. When a link is hovered, another color underline kinda slides in with a gap between the two. Typical text-decoration doesn’t help here, so multiple backgrounds are used instead,...
Leading-Trim: The Future of Digital Typesetting
21.8.2020
leading-trim is a suggested new CSS property that lets us remove the extra spacing in every font so that we can more predictably style text. Ethan Wang has written about it — including how Microsoft has advocated for it — and that it’s now part of the Inline Layout Module Level 3 spec.
You’d use...
Optimize Images with a GitHub Action
20.8.2020
I was playing with GitHub Actions the other day. Such a nice tool! Short story: you can have it run code for you, like run your build processes, tests, and deployments. But it’s just configuration files that can run whatever you need. There is a whole marketplace of Actions wanting to do work...
A Community-Driven Site with Eleventy: Building the Site
20.8.2020
In the last article, we learned what goes into planning for a community-driven site. We saw just how many considerations are needed to start accepting user submissions, using what I learned from my experience building Style Stage as an example.
Now that we’ve covered planning, let’s get to some...
Singapore: Code of Practice Offers Practical Guidance for Crypto License Applications
20.8.2020
Singapore’s crypto industry association is providing resources for local firms as they navigate new regulatory requirements
Can you get valid CSS property values from the browser?
19.8.2020
I had someone write in with this very legit question. Lea just blogged about how you can get valid CSS properties themselves from the browser. That’s like this.
CodePen Embed Fallback
That gives you, for example, the fact that cursor is a thing. But then how do you know what valid values...
CSS-Tricks Chronicle XXXVIII
15.8.2020
Hey gang! I’ve been fortunate enough to be a guest in a variety of different here, so I thought it was time for another Chronicle post. You know, those special posts where I round up the random goings-on of things I do off of this site.
I joined Ed & Tom over on A Question of Code.
We...
Singapore’s Central Bank Backs New Code of Practice for Crypto Companies
14.8.2020
The guidance is aimed to assist regulatory compliance and enhance crypto industry conduct under the city-state's payment laws
How One Line of Code Destroyed Yam DeFi
13.8.2020
A single mistake cost them everything
Stacked Cards with Sticky Positioning and a Dash of Sass
13.8.2020
The other day, I spotted this particularly lovely bit from Corey Ginnivan’s website where a collection of cards stack on top of one another as you scroll.
I started wondering how much JavaScript this would involve and how you’d go about making it when I realized — ah! — this must be the work...
Defi Project Yam Finance Sees Over $500M Locked in 24 Hours, Devs Reveal Contract Bug
13.8.2020
A new yield farming project is all the rage this week, as the Yam Finance project saw over $460 million dollars locked into the platform in 17 hours on Tuesday. On social media and crypto-focused forums, people have been very skeptical of the Yam Finance project as the code has not been audited....
Practical Use Cases for JavaScript’s closest() Method
12.8.2020
Have you ever had the problem of finding the parent of a DOM node in JavaScript, but aren’t sure how many levels you have to traverse up to get to it? Let’s look at this HTML for instance:
<div data-id="123"<buttonClick me</button</div
That’s pretty straightforward, right? Say...
zerodivs.com
10.8.2020
Pretty neat little website from Joan Perals, inspired by stuff like Lynn’s A Single Div. With multiple hard-stop background-image gradients, you don’t need extra HTML elements to draw shapes — you can draw as many shapes as you want on a single element. There is even a stacking order...
More Control Over CSS Borders With background-image
7.8.2020
You can make a typical CSS border dashed or dotted. For example:
.box {
border: 1px dashed black;
border: 3px dotted red;
}
You don’t have all that much control over how big or long the dashes or gaps are. And you certainly can’t give the dashes slants, fading, or animation!...
What does 100% mean in CSS?
7.8.2020
When using percentage values in CSS like this…
.element {
margin-top: 40%;
}
…what does that % value mean here? What is it a percentage of? There’ve been so many times when I’ll be using percentages and something weird happens. I typically shrug, change the value to something else...
font-weight: 300 considered harmful
7.8.2020
Tomáš Janoušek:
Many web pages these days set font-weight: 300 in their stylesheet. With DejaVu Sans as my preferred font, this results in very thin and light text that is hard to read, because for some reason the “DejaVu Sans ExtraLight” variant (weight 200) is being used...