Search

Nalezeno "QR code": 1642

Oh Hey, Padding Percentage is Based on the Parent Element’s Width


I learned something about percentage-based (%) padding today that I had totally wrong in my head! I always thought that percentage padding was based on the element itself. So if an element is 1,000 pixels wide with padding-top: 50%, that padding is 500 pixels. It's weird having top padding based...

An Early Look at the Vue 3 Composition API in the Wild


I recently had an opportunity to try the new Vue Composition API in a real project to check where it might be useful and how we could use it in the future. Until now, when we were creating a new component we were using Options API. That API forced us to separate the component’s code by options...

Making an Audio Waveform Visualizer with Vanilla JavaScript


As a UI designer, I’m constantly reminded of the value of knowing how to code. I pride myself on thinking of the developers on my team while designing user interfaces. But sometimes, I step on a technical landmine. A few years ago, as the design director of wsj.com, I was helping to re-design...

A Super Weird CSS Bug That Affects Text Selection


You know how you can style (to some degree) selected text with ::selection? Well, Jeff Starr uncovered a heck of a weird CSS bug. If you: Leave that selector empty Link it from an external stylesheet (rather than <style> block) Selecting text will have no style at all....

Pac-Man… in CSS!


You all know famous Pac-Man video game, right? The game is fun and building an animated Pac-Man character in HTML and CSS is just as fun! I’ll show you how to create one while leveraging the powers of the clip-path property. See the Pen Animated Pac-Man by Maks Akymenko (@maximakymenko) ...

For Initial Exchange Offerings, Liquidity is King


There are many benchmarks for measuring IEO success. Token price, community size, code shipped, and milestones met are all yardsticks for gauging the progress of a tokenized project. For projects seeking to create the biggest possible splash, however, liquidity is the crucial factor. The more...

Two-Value Display Syntax (and Sometimes Three)


You know the single-value syntax: .thing { display: block; }. The value "block" being a single value. There are lots of single values for display. For example, inline-flex, which is like flex in that it becomse a flex container, but behaves like an inline-level element rather than a block-level...

Working with Fusebox and React


If you are searching for an alternative bundler to webpack, you might want to take a look at FuseBox. It builds on what webpack offers — code-splitting, hot module reloading, dynamic imports, etc. — but code-splitting in FuseBox requires zero configuration by default (although webpack will offer...

Kim Dotcom Token Sale Postponed Over ‘Regulatory Uncertainty’


In 2017, Kim Dotcom, the founder of the now-defunct file hosting service Megaupload, revealed a similar service called K.im that planned to give anyone the ability to upload files, documents, code, videos, and music files and get paid in crypto for their work. Since then, Dotcom’s team...

Some Things You Oughta Know When Working with Viewport Units


David Chanin has a quickie article summarizing a problem with setting an element's height to 100vh in mobile browsers and then also positioning something on the bottom of that. Summarized in this graphic: The trouble is that Chrome isn't taking the address bar (browser chrome) into account when...

What is super() in JavaScript?


What's happening when you see some JavaScript that calls super()?.In a child class, you use super() to call its parent’s constructor and super.<methodName> to access its parent’s methods. This article will assume at least a little familiarity with the concepts of constructors and child...

Show Search Button when Search Field is Non-Empty


I think the :placeholder-shown selector is tremendously cool. It allows you to select the placeholder of an input (<input placeholder="...">) when that placeholder is present. Meaning, the input does not yet have any value. You might think input[value] could do that, or help match on...

Float Element in the Middle of a Paragraph


Say you want to have an image (or any other element) visually float left into a paragraph of text. But like... in the middle of the paragraph, not right at the top. It's doable, but it's certainly in the realm of CSS trickery! One thing you can do is slap the image right in the middle of...

How Bitcoin’s Peer-to-Peer Cash System Was Revealed 11 Years Ago


On October 31, 2008, on the eve of Halloween, Satoshi Nakamoto published the Bitcoin whitepaper. Since then the revolutionary design of the network has changed the lives of many and has transformed how we look at money today. Also read: China Ranks 35 Crypto Projects as President Xi Pushes...

Comparing the Different Types of Native JavaScript Popups


JavaScript has a variety of built-in popup APIs that display special UI for user interaction. Famously: alert("Hello, World!"); The UI for this varies from browser to browser, but generally you’ll see a little window pop up front and center in a very show-stopping way that contains the message...

The Current State of Styling Selects in 2019


Best I could tell from the last time I compiled the most wished-for features of CSS, styling form controls was a major ask. Top 5, I'd say. And of the native form elements that people want to style, Greg Whitworth has some data that the <select> element is more requested than any other...

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