:is() selector

:is() selector 🎉 the successor to :any() and :matches() sneak peak into our talk, here’s a neat gif I made with XD showing what the :is() selector syntax can do. be excited for Chrome Dev Summit y’all! https://developer.chrome.com/devsummit/

Everyone uses CSS frameworks today

Anytime the “what’s your favorite CSS framework” question pops up, you read the same comments: a bunch of developers expressing their love for framework X or Y, and others stating they don’t use frameworks. Some of the reasons why some developers say they don’t use CSS frameworks: Frameworks are opinionated. Why would I need a… continue reading

The Ultimate Guide to Flexbox Centering

Flexbox is a popular CSS layout module that helps you position HTML elements on the screen. There are multiple use cases when it can be a godsend; horizontal and vertical centering is one of them. Flexbox centering solves common alignment problems you might encounter when working with the traditional CSS box model. It allows you… continue reading

Facebook Placeholders

Content Placeholders ? A while ago, the great and (not always) glorious Facebook introduced content placeholders that appear to users while the page content is still being loaded, yielding a fantastic user experience. It’s not always possible to load content as fast as we would want to, but at least, we can make the wait… continue reading

List of (Advanced) JavaScript Questions

I post daily multiple choice JavaScript questions on my Instagram, which I’ll also post here! From basic to advanced: test how well you know JavaScript, refresh your knowledge a bit, or prepare for your coding interview! :muscle: :rocket: I update this repo weekly with new questions. The answers are in the collapsed sections below the… continue reading

Move from jQuery to Vue

As someone who has used jQuery for many. years and has recently become a Vue convert, I thought it would be an interesting topic to discuss the migration process of working with one to the other.

[Solved] Trouble with opening site from Dropbox client on KDE (Manjaro)

I face same issue with my Dropbox client after upgrade my system (Manjaro KDE 18.0.4). After finding on Google I see that it already reported as here: https://www.dropboxforum.com/t5/Installation-and-desktop-app/Trobles-with-opening-site-from-app-in-KDE/td-p/270031 I have Debian 9.4 with KDE 16.04. When I try open dropbox site, from right-click menu on tray icon or from context menu in dolphine, system open… continue reading

10 Tools To Power Up Your Command Line

This post is the first in a series of showcases of some of the best non-standard command line tools I’ve discovered in recent years. If you ever make use of the command line, you’ll probably find that at least one item on this page will make your life easier. z, jump around One of the… continue reading

Handling broken images with the service worker

A few years ago, I wrote about how we can use css to style broken images. The technique leveraged on the fact that any styling to the ::before or ::after pseudo-elements on the <img> element will only be applied if the image doesn’t load. So, we could style those elements and they would only display… continue reading