Search
Semantic menu context
11.11.2021
Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a list. I would suspect the intention …
The post Semantic menu context appeared first on CSS-Tricks. You can support CSS-Tricks...
Icon Glassmorphism Effect in CSS
8.11.2021
I recently came across a cool effect known as glassmorphism in a Dribble shot. My first thought was I could quickly recreate it in a few minutes if I just use some emojis for the icons without wasting time …
The post Icon Glassmorphism Effect in CSS appeared first on CSS-Tricks. You...
How to Implement and Style the Dialog Element
27.10.2021
A look from Christian Kozalla on the <dialog> HTML element and using it to create a nice-looking and accessible modal.
CodePen Embed Fallback
I’m attracted to the <dialog> element as it’s one of those “you get a lot for free” …
The post How...
Can Include (a Certain HTML element within another Certain HTML Element)
22.10.2021
A single-serving website from Alexander Vishnyakov for testing if it’s valid to put any particular HTML element within another type of HTML element. Kinda neat to have a quick reference for this.
Some combinations feel fairly obvious: can you put …
The post Can Include (a Certain HTML...
How to Implement and Style the Dialog Element
6.10.2021
Go in-depth on the native dialog HTML element with this tutorial and learn how to implement a user-friendly, accessible dialog on your website.
The post How to Implement and Style the Dialog Element appeared first on Codrops
Conditional Border Radius In CSS
5.10.2021
Ahmad Shadeed documents a bonafide CSS trick from the Facebook CSS codebase. The idea is that when an element is the full width of the viewport, it doesn’t have any border-radius. But otherwise, it has 8px of border-radius. …
The post Conditional Border Radius In CSS appeared first...
ct.css — Performance Hints via Injected Stylesheet Alone
5.10.2021
This is some bonafide CSS trickery from Harry that gives you some generic performance advice based on what it sees in your <head> element.
First, it’s possible to make a <style> block visible like any other element by changing the …
The post ct.css — Performance Hints...
What is Your Page Title on a Google Search Engine Results Page?
23.9.2021
Whatever Google wants it to be. I always thought it was exactly what your <title> element was. Perhaps in lieu of that, what the first <h1> on the page is. But recently I noticed some pages on this site that …
The post What is Your Page Title on a Google Search Engine Results...
Container Units Should Be Pretty Handy
23.9.2021
Container queries are going to solve this long-standing issue in web design where we want to make design choices based on the size of an element (the container) rather than the size of the entire page. So, if a container …
The post Container Units Should Be Pretty Handy appeared first...
7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS
21.9.2021
CSS ::before and ::after pseudo-elements allow you to insert “content” before and after any non-replaced element (e.g. they work on a <div> but not an <input>). This effectively allows you to show something on a web page that might …
The post 7 Practical Uses...
Shadow Roots and Inheritance
16.9.2021
There is a helluva gotcha with styling a <details> element, as documented here by Kitty Guiraudel. It’s obscure enough that you might never run into it, but if you do, I could see it being very confusing (it would confuse …
The post Shadow Roots and Inheritance appeared first...
On the `dl`
15.9.2021
Blogging about HTML elements¹? *chefs kiss*
Here’s Ben Myers on the (aptly described) “underrated” Definition List (<dl>) element in HTML:
You might have also seen lists of name–value pairs to describe lodging amenities, or to list
…
The post On the `dl` appeared...
Supercharging Built-In Elements With Web Components “is” Easier Than You Think
3.9.2021
We’ve already discussed how creating web components is easier than you think, but there’s another aspect of the specification that we haven’t discussed yet and it’s a way to customize (nay, supercharge) a built-in element. It’s similar to …
The post Supercharging Built-In Elements With...
Collective #675
19.8.2021
CSS accent-color * Shared Element Transition API * Breaking the web forward * MIDIVal
The post Collective #675 appeared first on Codrops
Meet `:has`, A Native CSS Parent Selector
12.7.2021
The reasons that are often cited that make container queries difficult or impossible is things like infinite loops—e.g. changing the width of an element, invalidating a container query, which changes the width again, which makes the container query take effect, …
The post Meet `:has`,...
Sygnum Bank Launches ETH 2.0 Staking – Business Unit Head Says ‘Staking Is a Core Element for Portfolios’
7.7.2021
The Switzerland-based bank Sygnum revealed on Tuesday that the firm now allows Ethereum 2.0 staking. The FINMA-approved company’s customers can access the Ethereum-based staking services via Sygnum’s banking platform. Sygnum’s Banking Platform Offers Ethereum 2.0 Staking Last...
When a Click is Not Just a Click
30.6.2021
The click event is quite simple and easy to use; you listen for the event and run code when the event is fired. It works on just about every HTML element there is, a core feature of the DOM API.…
The post When a Click is Not Just a Click appeared first on CSS-Tricks. You can support...
Russian Billionaire Slams Central Bank’s Crypto Policy, Says Even El Salvador Realizes the Need for Bitcoin
21.6.2021
Russian billionaire Oleg Deripaska wants the Bank of Russia, the country’s central bank, to embrace cryptocurrency, citing El Salvador’s bitcoin law as an example. El Salvador recently passed a bill making bitcoin legal tender in the country. Billionaire Oleg Deripaska is the founder...
Using the `outline` Property as a Collapsable Border
18.6.2021
The outline property in CSS draws a line around the outside of an element. This is quite similar to the border property, the main exception being that outline isn’t a part of the box model. It is often used for …
The post Using the `outline` Property as a Collapsable Border appeared first...
Bank of England Boss Pledges ‘Tough Love’ in Cryptocurrency Regulation
16.6.2021
Bank of England Governor Andrew Bailey says there will be an element of “tough love” in regulating cryptocurrency. “What we cannot have is a world where innovation gets a free pass to ignore the public interest. The odds of such an approach not ending well are too high,”...