Search

Nalezeno "QR code": 1615

Under-Engineered Responsive Tables


I first blogged about responsive data tables in 2011. When responsive web design was first becoming a thing, there were little hurdles like data tables that had to be jumped. The nature of <table> elements are that they have something a minimum width depending on the content they contain...

xSigma DeFi Is a Game Changing Protocol Backed by a NASDAQ Listed Company


The DeFi ecosystem has been growing faster than anyone can keep up with recently. Billions of dollars in digital assets are invested, despite all the problems the current services suffer from. Buggy code, security vulnerabilities and shady anonymous developers are just some of the issues that...

Super Tiny Icons


A bunch of SVG icons (of popular things) all under 1KB. SVG is awesome for golfing. I was going to add a CodePen logo but there is already one in there at 375 Bytes. I’ve got one at 208 Bytes, based on a logo update David DeSandro did for us a couple years back. Direct Link to Article...

Lots of Ways to Use Math.random() in JavaScript


Math.random() is an API in JavaScript. It is a function that gives you a random number. The number returned will be between 0 (inclusive, as in, it’s possible for an actual 0 to be returned) and 1 (exclusive, as in, it’s not possible for an actual 1 to be returned). Math.random(); // returns...

A Complete State Machine Made With HTML Checkboxes and CSS


State machines are typically expressed on the web in JavaScript and often through the popular XState library. But the concept of a state machine is adaptable to just about any language, including, amazingly, HTML and CSS. In this article, we’re going to do exactly that. I recently built a website...

Collective #636


Web Development for Beginners * Playfulness In Code * Text Gradients in CSS * What are design tokens? The post Collective #636 appeared first on Codrops

Exploring What the Details and Summary Elements Can Do


We’ve mentioned before just how great the <details> and <summary> elements are. They’re great for quickly making accordions that are accessible to touch, mouse, and keyboard input: CodePen Embed Fallback <details> and <summary> can even be used to play/pause gifs!...

New Research Suggests Satoshi Nakamoto Lived in London Creating Bitcoin


The hunt for the mysterious Bitcoin inventor, Satoshi Nakamoto continues to this day, as new data-driven research has been recently deployed in order to figure out the creator’s location while he/she or they worked on the network. The researchers analyzed Satoshi’s 539 Bitcointalk...

Rendering Spectrum


Here are the big categories of rendering websites: Client: ship a <div id="root"></div> and let a JavaScript template render all of it. Static: pre-render all the HTML. Server: let a live server process requests and generate the HTML response. They are not mutually exclusive....

How to Load Fonts in a Way That Fights FOUT and Makes Lighthouse Happy


A web font workflow is simple, right? Choose a few nice-looking web-ready fonts, get the HTML or CSS code snippet, plop it in the project, and check if they display properly. People do this with Google Fonts a zillion times a day, dropping its <link> tag into the <head>. Let’s...

A Dynamically-Sized Sticky Sidebar with HTML and CSS


Creating page content that sticks to the viewport as you scroll, something like a jump-to-anchor menu or section headings, has never been easier. Throw a position: sticky into your CSS ruleset, set the directional offset (e.g. top: 0) and you’re ready to impress your teammates with minimal effort....

console.log({ myVariable });


I think this might be my most popular tweet of all time, but I’m not sure how to verify that these days. I’ll restate this neat little trick here because blogging is cool and fun. I used to do this a lot while debugging JavaScript: console.log("myVariable: ", myVariable); But now I...

Color Theming with CSS Custom Properties and Tailwind


Custom properties not only enable us to make our code more efficient, but allow us to work some real magic with CSS too. One area where they have huge potential is theming. At Atomic Smash we use Tailwind CSS, a utility class framework, for writing our styles. In this article, we’ll look at...

grid-auto-flow : CSS Grid :: flex-direction : Flexbox


When setting a parent element to display: flex, its child elements align left-to-right like this: CodePen Embed Fallback Now, one of the neat things we can do with flexbox is change the direction so that child elements are stacked vertically on top of each other in a column. We can do that with...

Creating WebGL Effects with CurtainsJS


This article focuses adding WebGL effects to <image> and <video> elements of an already “completed” web page. While there are a few helpful resources out there on this subject (like these two), I hope to help simplify this subject by distilling the process into a...

Upptime


GitHub Actions are like free computers. Well, there is pricing, but even free plans get 2,000 minutes a month. You write configuration files for what you want these computers to do. Those configuration files go into a repo, so typically they do things specific to that repo. I’m sure that...

Copyediting with Semantic HTML


Tracking changes is a quintessential copyediting feature for comparing versions of content. While we’re used to tracking changes in a word processing document, we actually have HTML elements capable of that. There are a lot of elements that we can use for this process. The main ones we’ll look...

Bitcoin.com Announces Partnership With Luxury Watchmaker Franck Muller


PRESS RELEASE. Saint Kitts, November 17, 2020— Bitcoin.com, the go-to web portal for everything bitcoin, announced the launch of a new Franck Muller luxury watch called “Free the Money, Free the World.” The watch is the first ever Bitcoin Cash (BCH) Franck Muller...

A Complete Guide to CSS Gradients


Like how you can use the background-color property in CSS to declare a solid color background, you can use the background-image property not only to declare image files as backgrounds but gradients as well. Using CSS gradients is better for control and performance than using an actual image (of...

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