Web Development

Writing conditionals in CSS: when/else

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

3 years ago

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

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

3 years ago

Select all text on click using CSS

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

3 years ago

Detecting element causing CSS overflow

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

3 years ago

How to create a UUID in JavaScript

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

3 years ago

How to convert a React component to an image

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

3 years ago

Specifying a node version in Repl.it

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

3 years ago

Accessing the clipboard in JavaScript

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

3 years ago

Using counters in CSS to number elements automatically

Ordered lists have been an important part of web design for quite a while now. If we needed more control…

3 years ago

How to remove a property from a JavaScript object

There are two ways to remove a property from a JavaScript object: one is the mutable way of doing it…

3 years ago
Advertisements