Writing conditionals in CSS: when/else

3 years ago

CSS already has had conditionals in the form of @media queries or @support queries to selectively apply styling to the…

Retrieving content value of ::after or ::before in JavaScript

3 years ago

Let us suppose we had an HTML element which had an ::after property assigned to it. We are going to…

How to permanently remove a file from Git history

3 years ago

We all make mistakes sometimes. Pushing files that contain some secrets or sensitive information to a Git repository is fairly…

Select all text on click using CSS

3 years ago

When a user has to select some text on a website, they have to drag and hold their mouse, or…

Detecting element causing CSS overflow

3 years ago

CSS overflows are an annoyance that keep showing up once in a while and are really hard to debug. Unwanted…

Opening a Browser with DevTools Open by Default

3 years ago

While automating some parts of my development workflow, I was wondering if there was a way of opening a browser…

How to create a UUID in JavaScript

3 years ago

Creating a globally unique identifier has always been a necessity in all programming languages and for some reason, JavaScript never…

How to convert a React component to an image

3 years ago

Sometimes you want to give the users the ability to download a part of the web application as an image.…

Specifying a node version in Repl.it

3 years ago

I was recently trying to use a later version of Node on Repl.it. I wanted to use a package that…

Accessing the clipboard in JavaScript

3 years ago

Developers are probably the laziest people on the planet. And of all the things, copy-paste is our favorite keyboard shortcut.…

Advertisements