Search
A Complete Guide to Custom Properties
27.4.2021
Everything important and useful to know about CSS Custom Properties. Like that they are often referred to as "CSS Variables" but that's not their real name.
The post A Complete Guide to Custom Properties appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter
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...
Generating (and Solving!) Sudokus in CSS
15.4.2021
I love to make CSS do stuff it shouldn’t. It’s the type of problem-solving brain training you’d get building a calculator in Minecraft, except you probably won’t get a job working with Minecraft Redstone no matter how good you …
The post Generating (and Solving!) Sudokus in CSS appeared...
An ECB Board Member Attacks Bitcoin, Says It ‘Does Not Fulfill the Basic Properties of Money’
10.4.2021
Isabel Schnabel, a board member with the European Central Bank (ECB), has attacked bitcoin claiming the crypto asset “does not fulfill the basic properties of money.” She also describes bitcoin as a “speculative asset without any recognizable fundamental value and is subject...
Real Estate Billionaire Buys Bitcoin, Accepts BTC for Rent Payment at His Residential and Retail Properties
8.4.2021
Billionaire real estate mogul Rick Caruso has revealed that his company has invested in bitcoin for its treasury and will begin accepting the cryptocurrency for rent payment at its properties. Among the tenants of one of his properties is Elon Musk’s Tesla. Caruso said, “We believe that...
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...
Image Fragmentation Effect With CSS Masks and Custom Properties
23.3.2021
Geoff shared this idea of a checkerboard where the tiles disappear one-by-one to reveal an image. In it, an element has a background image, then a CSS Grid layout holds the “tiles” that go from a filled background color to …
The post Image Fragmentation Effect With CSS Masks and Custom...
FBI Arrests 6 Free Keene Members Operating Cryptocurrency Exchange
21.3.2021
Six people involved with the Free Keene movement have been arrested and charged for allegedly operating an illegal cryptocurrency exchange business. “They operated their virtual currency exchange business using websites, as well as operating virtual currency ATM machines in...
Platform News: Prefers Contrast, MathML, :is(), and CSS Background Initial Values
19.3.2021
In this week’s round-up, prefers-contrast lands in Safari, MathML gets some attention, :is() is actually quite forgiving, more ADA-related lawsuits, inconsistent initial values for CSS Backgrounds properties can lead to unwanted — but sorta neat — patterns.
The prefers-contrast: more…
The...
Platform News: Defaulting to Logical CSS, Fugu APIs, Custom Media Queries, and WordPress vs. Italics
12.3.2021
Looks like 2021 is the time to start using CSS Logical Properties! Plus, Chrome recently shipped a few APIs that have raised eyebrows, SVG allows us to disable its aspect ratio, WordPress focuses on the accessibility of its typography, and …
The post Platform News: Defaulting to Logical...
Spanish Real Estate Agency Begins Accepting Bitcoin Payments for Properties in the Canary Islands
11.3.2021
Crypto adoption keeps spreading among the real estate industry in Europe, specifically in Spain. Recently, a leading agency in the Canary Islands announced it would start accepting cryptocurrency payments. Firm Praises Bitcoin’s Decentralized Nature According to Digital Sevilla, Piso Barato...
Exploring @property and its Animating Powers
4.3.2021
Uh, what’s @property? It’s a new CSS feature! It gives you superpowers. No joke, there is stuff that @property can do that unlocks things in CSS we’ve never been able to do before.
While everything about @property is exciting, …
The post Exploring @property and its Animating Powers appeared...
How to Map Mouse Position in CSS
1.3.2021
Let’s look at how to get the user’s mouse position and map it into CSS custom properties: --positionX and --positionY.
We could do this in JavaScript. If we did, we could do things like make make an element …
The post How to Map Mouse Position in CSS appeared first on CSS-Tricks.
You...
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...
Ensuring the correct vertical position of large text
26.2.2021
Tobi Reif notes how the position of custom fonts set at very large font sizes can be super different, even in the same browser across operating systems. The solution? Well, you know how there are certain CSS properties that only …
The post Ensuring the correct vertical position of large text...
A DRY Approach to Color Themes in CSS
24.2.2021
The other day, Florens Verschelde asked about defining dark mode styles for both a class and a media query, without repeat CSS custom properties declarations. I had run into this issue in the past but hadn’t come up with a …
The post A DRY Approach to Color Themes in CSS appeared first...
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...
Use CSS Variables instead of React Context
19.2.2021
Turns out you can use several different libraries to pass color information around components. Or, you could use custom properties, built right into CSS, have no decline in your own developer experience, and deliver a faster experience to your users. …
The post Use CSS Variables instead...
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...
Earn Money by Selling NFT Properties in Upland
11.2.2021
PRESS RELEASE. Hidden among a press release published on November 10, 2020 is one of the most significant developments in blockchain history: By partnering with Tilia Pay, Upland.me, a virtual property metaverse that offers true ownership of NFT property parcels mapped to real addresses, has taken...