Search

Nalezeno "items": 193

How to Add Commas Between a List of Items Dynamically with CSS


Imagine you have a list of items. Say, fruit: Banana, Apple, Orange, Pear, Nectarine We could put those commas (,) in the HTML, but let’s look at how we could do that in CSS instead, giving us an extra level … The post How to Add Commas Between a List of Items Dynamically with CSS appeared...

A Calendar in Three Lines of CSS


This article has no byline and is on a website that is even more weirdly specific than this one is, but I appreciate the trick here. A seven-column grid makes for a calendar layout pretty quick. You can let the days (grid items) fall onto it naturally, except kick the first day over to the correct...

Spending Sats: A Look at This Year’s Bitcoin Black Friday Deals


Every year the shopping holiday called Black Friday allows consumers to get better deals on products and services. On November 24, the day also known as ‘Bitcoin Black Friday’ will provide crypto users access to deals when they purchase items with digital assets like bitcoin. Due to...

Thinking Outside the Box with CSS Grid


Great tutorial from Alex Trost (based on some demos, like this one, from Andy Barefoot) showcasing how, while CSS grid has straight grid lines across and down, you can place items across grid lines creating a staggered effect that looks pretty rad. Grid-like, but it appears to align to diagonal...

NFT Economy Grows Exponential: $1M in Non-Fungible Token Sales Last Week


While a number of people are focused on decentralized finance (defi), the non-fungible token (NFT) industry has also exploded in demand in 2020. Last week, NFT sales soared nearing a million dollars in volume, as the blockchain-based Sorare fantasy soccer card game saw over $221,000 in sales during...

Menu Reveal By Page Rotate Animation


There are many different approaches to menus on websites. Some menus are persistent, always in view and display all the options. Other menus are hidden by design and need to be opened to view the options. And there are even additional approaches on how hidden menus reveal their menu items. Some...

The Cicada Principle, revisited with CSS variables


Lea Verou digging up the CSS trickery classic and applying it to clip the backgrounds of some code blocks: The main idea is simple: You write your main rule using CSS variables, and then use :nth-of-*() rules to set these variables to something different every N items. If you use enough...

The Tokenized Metaverse: Non-Fungible Token Sales to Surpass $100 Million


On July 1, 2020, the partner of Polynexus Capital, Andrew Steinwold, detailed that the sales of blockchain-powered non-fungible tokens (NFTs) are about to cross the $100 million mark. The popularity of NFTs has grown massive since 2017, as blockchain cards, collectibles, digital artwork, virtual...

Food and Cash Shortages Push Cubans Toward Permissionless Cryptocurrencies


The Nation of Cuba is dealing with a national food crisis, as Venezuela has stopped offering aid to the small island nation. Moreover, the coronavirus outbreak has caused a shortage of cash couriers called “mules” and everyday items are becoming scarcer. Amid the crisis, a number...

Grid for layout, flexbox for components


When should we reach for CSS grid and when should we use flexbox? Rachel Andrew wrote about this very conundrum way back in 2016: Flexbox is essentially for laying out items in a single dimension – in a row OR a column. Grid is for layout of items in two dimensions – rows AND columns. Ahmad...

An Infinitely Scrollable Vertical Menu


A quick look at how an infinitely scrollable menu works based on a looping scroll illusion of cloned items. An Infinitely Scrollable Vertical Menu was written by Mary Lou and published on Codrops

First Steps into a Possible CSS Masonry Layout


It’s not at the level of demand as, say, container queries, but being able to make “masonry” layouts in CSS has been a big ask for CSS developers for a long time. Masonry being that kind of layout where unevenly-sized elements are layed out in ragged rows. Sorta like a typical...

Chromium lands Flexbox gap


I mentioned this the other day via Michelle Barker’s coverage, but here I’ll link to the official announcement. The main thing is that we’ll be getting gap with flexbox, which means: .flex-parent { display: flex; gap: 1rem; } .flex-child { flex: 1; } That’s excellent...

List Style Recipes


Lists are a fundamental part of HTML! They are useful in things like blog posts for listing out steps, recipes for listing ingredients, or items in a navigation menu. Not only are they an opportunity for styling, but they have accessibility implications. For example, the number of items in a list...

My Visual Studio Code Setup: Extensions and Themes


Matthias Ott’s posted his VS Code setup. I find lists like this (I rounded up some recent updates of my own) irresistible, probably because, like y’all, I spend an awful lot of time in VS Code and wanna make sure I’m getting the most out of it. Things from the list that stood...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace