Search

Nalezeno "qr code": 1574

Using CSS Grid the right way


Violet Peña has shared her recommendations for using CSS Grid. They basically boil down to these high-level points: Use names instead of numbers for setting up our grid columns. fr should be our flexible unit of choice. We don’t really need a grid system anymore. Although this is all great advice...

Colorful Typographic Experiments


There have been some interesting, boundary-pushing typography-related experiments lately. I was trying to think of a joke like "somethings in the descenders" but I just can't find something that will stand on its own leg without being easy to counter. Codrin Pavel created a fascinating multi-color...

Social Cards as a Service


I love the idea of programmatically generated images. That power is close at hand these days for us front-end developers, thanks to the concept of headless browsers. Take Puppeteer, the library for controlling headless Chrome. Generating images from URLs is their default use case: const puppeteer...

Working with TypeScript in Visual Studio Code


TypeScript and Visual Studio Code are two amazing products created by Microsoft, and - surprise surprise- they work amazing together! Let's take a look at how Visual Studio Code makes it a breeze t

How @supports Works


CSS has a neat feature that allows us to test if the browser supports a particular property or property:value combination before applying a block of styles — like how a @media query matches when, say, the width of the browser window is narrower than some specified size and then the CSS within...

IE10-Compatible Grid Auto-Placement with Flexbox


If you work on web applications that support older browsers, and have lusted after CSS Grid from the sidelines like I have, I have some good news: I've discovered a clever CSS-only way to use grid auto-placement in IE10+! Now, it's not actually CSS Grid, but without looking at the code itself,...

7 JavaScript Playgrounds to Use in 2019


The importance of online code editing platforms cannot be overemphasized. As much as we love our local IDE's, one too many times we find ourselves needing to quickly share and or collaborate with

JavaScript Glossary: Array unshift() Method


Basics The unshift array method appends a number of values to the start of a given array. It then returns the new length of the array. This method can take a number of argumen

​​Avoiding those dang cannot read property of undefined errors


​​​​Uncaught TypeError: Cannot read property 'foo' of undefined.​ The dreaded error we all hit at some point in JavaScript development. Could be an empty state from an API that returns differently than you expected. Could be something else. We don’t know because the error itself is so general...

Where Do You Nest Your Sass Breakpoints?


I love nesting my @media query breakpoints. It's perhaps the most important feature of Sass to me. Maybe I pick a method and do it like this: .element { display: grid; grid-template-columns: 100px 1fr; @include breakpoint(baby-bear) { display: block; } } That's straightforward enough....

JavaScript Glossary: Array .splice() Method


Basics The splice array method changes an existing array by removing, adding and/or replacing specified elements from it. The method mutates the array and returns an array of

JavaScript Glossary: Array .slice() Method


Basics The slice array method copies a given part of an array returning the selected part as an array. It doesn’t mutate the given array rather, it returns a new array

JavaScript Glossary: Array .map() Method


Basics The map() method takes a callback method that performs an operation on the elements in the array. It returns a new array containing the resulting values of running the

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