Search
CSS Border Font
28.2.2021
Every letter in this “font” by Davor Suljic is a single div and drawn only with border. That means employing some trickery like border-radius with exotic syntax like border-radius: 100% 100% 0 0 / 37.5% 37.5% 0 0; which …
The post CSS Border Font appeared first...
Inverse Finance seizes tokens, ships code: Launches stablecoin lending protocol
28.2.2021
One of DeFi's strangest experiments continues to push the envelope in both governance and architecture
Weekly Platform News: Reduced Motion, CORS, WhiteHouse.gov, popups, and 100vw
26.2.2021
In this week’s roundup, we highlight a proposal for a new <popup> element, check the use of prefers-reduced-motion on award-winning sites, learn how to opt into cross-origin isolation, see how WhiteHouse.gov approaches accessibility, and warn the dangers of 100vh.…
The post...
Topps Garbage Pail Kids Blockchain Collectibles Can Be Found at Target and Walmart
23.2.2021
The popular trading card company Topps has just launched the “2021 Garbage Pail Kids Food Fight” series today, and the trading card packs are being sold at Target and Walmart stores. Not only will the Garbage Pail Kids (GPK) series provide people with collectible cardboard trading...
To the brain, reading computer code is not the same as reading language
22.2.2021
One of the things I do when teaching beginning front-end development is ask students to describe what it’s like to read HTML. I give them pretty basic markup for a long-form article, and ask them to read it twice: first …
The post To the brain, reading computer code is not the same...
Report: CD Projekt Red Issuing DMCA Takedowns To Keep A Lid On Hacked Source Code
22.2.2021
Maker of The Witcher 3 and Cyberpunk 2077, CD Projekt Red, is hitting Twitter users with Digital Millennium Copyright Act (DMCA) takedowns for sharing links to Gwent source code, according to a recent report by Vice.Read more
Take-Two Goes After Reverse-Engineered Grand Theft Auto Code
22.2.2021
Last week we shared the good news that the source code for Grand Theft Autos III & Vice City had been reverse-engineered, allowing folks to port the games and come up with cool new mods. Now, we bring you the predictable news that publisher Take-Two Interactive are not happy.Read more
Clipping Scrollable Areas On The inline-start Side
19.2.2021
On a default left-to-right web page, “hanging” an element off the right side of the page (e.g. position: absolute; right: -100px;) triggers a horizontal scrollbar that scrolls as far as needed to make that whole element visible. But if …
The post Clipping Scrollable Areas On...
Let’s Create a Custom Audio Player
18.2.2021
HTML has a built-in native audio player interface that we get simply using the <audio> element. Point it to a sound file and that’s all there is to it. We even get to specify multiple files for better browser support, …
The post Let’s Create a Custom Audio Player appeared first...
Barebones CSS for Fluid Images
18.2.2021
Zach takes a look at some fundamental HTML+CSS usage for fluid, responsive images. Most of it, I’d say, is what you’d expect, but things get weird when srcset gets involved.
I poked my way through, and in addition to the …
The post Barebones CSS for Fluid Images appeared first...
Libra Co-Creator’s VC Firm Co-Leads $12M Round in ‘Decentralized GitHub’
18.2.2021
“Web 3 developers should be building on open protocols,” NFX General Partner Morgan Beller said of Radicle, a platform for crypto-native code collaboration
CSS Switch-Case Conditions
17.2.2021
CSS is yet to have a switch rule or conditional if, aside from the specific nature of @media queries and some deep trickery with CSS custom properties. Let’s have a look at why it would be useful if we …
The post CSS Switch-Case Conditions appeared first on CSS-Tricks.
You can support...
Use CSS Clamp to create a more flexible wrapper utility
17.2.2021
I like Andy’s idea here:
.wrapper {
width: clamp(16rem, 90vw, 70rem);
margin-left: auto;
margin-right: auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
}
Normally I’d just set a max-width there, but as Andy says:
This becomes a slight issue in mid-sized viewports, such...
Maximally optimizing image loading for the web in 2021
16.2.2021
Malte Ubl’s list for:
8 image loading optimization techniques to minimize both the bandwidth used for loading images on the web and the CPU usage for image display.
Fluid width images in CSS, not forgetting the height and width attributes
…
The post Maximally optimizing image...
Vice City & Grand Theft Auto III's Source Code Has Been Reverse-Engineered
16.2.2021
A team of fans have managed to reverse-engineer the source code for both Grand Theft Auto III and Grand Theft Auto Vice City, making the files available for download.Read more
Using AbortController as an Alternative for Removing Event Listeners
15.2.2021
The idea of an “abortable” fetch came to life in 2017 when AbortController was released. That gives us a way to bail on an API request initiated by fetch() — even multiple calls — whenever we want.
Here’s a super …
The post Using AbortController as an Alternative for Removing Event Listeners...
Beautiful accessibility with Floating Focus
15.2.2021
Imagine if your :focus styles animated from element to element as you tab through a site. Like the focus ring up and flew across the page to the next element. The spirit of it is similar to smooth scrolling: it’s …
The post Beautiful accessibility with Floating Focus appeared first...
Don’t put pointer-events: none on form labels
12.2.2021
Bruce Lawson with the tip of the day, warning against the use of pointer-events: none on forms labels. We know that pointer-events is used to change how elements respond to click, tap, hover, and active states. But it apparently borks …
The post Don’t put pointer-events: none on form labels...
Reconciling Editor Experience and Developer Experience in the CMS
12.2.2021
Components are great, aren’t they? They are these reusable sources of truth that you can use to build rock-solid front-ends without duplicating code.
You know what else is super cool? Headless content management! Headless content management system (CMS) products offer …
The post Reconciling...
Mysterious Address With $3 Billion in Dogecoin Sends Cryptic Binary Messages to Elon Musk
12.2.2021
Ever since the infatuation between Elon Musk and the meme-based cryptocurrency dogecoin, a number of people have looked at the asset critically. News.Bitcoin.com recently reported on the mysterious dogecoin wallet that absorbed more than 27% of the coin’s supply since February 6, 2019. This...