Home/Frontend
Topic

Frontend

2,065 articles on Frontend.

13,309 articles
Frontend — It's always the stacking context.

It's always the stacking context.

In "What the heck, z-index??," Josh Comeau makes the analogy of layer groups in design software like Photoshop or Figma to stacking contexts in CSS. If you've

CCChris Coyier·March 22, 2021Frontend
Frontend — A Complete Guide To Accessible Front-End Components — Smashing Magazine

A Complete Guide To Accessible Front-End Components — Smashing Magazine

In a new short series of posts, we highlight some of the useful tools and techniques for developers and designers. Recently we’ve covered CSS Auditing Tools and CSS Generators, and this time we look into reliable accessible components: from tabs and tables to toggles and tooltips. We sincerely hope that these tools and techniques will prove to be useful in your day-to-day work — and most important

VFVitaly FriedmanVitaly Friedman·March 22, 2021Frontend
Frontend — In Praise of the Unambiguous Click Menu

In Praise of the Unambiguous Click Menu

I still remember my excitement when I learned how to build a hover-triggered submenu with just CSS. (It was probably after reading this 2003 article from A

MRMark Root-Wiley·March 18, 2021Frontend
Frontend — Handling User Permissions in JavaScript

Handling User Permissions in JavaScript

So, you have been working on this new and fancy web application. Be it a recipe app, a document manager, or even your private cloud, you‘ve now reached the

ARAndreas Remdt·March 17, 2021Frontend
Frontend — What’s New In Flutter 2? — Smashing Magazine

What’s New In Flutter 2? — Smashing Magazine

As Flutter keeps evolving, there are more and more things we can do with it, but it’s still not reasonable to say that Flutter can be used for any app development project of any kind. Flutter has been transitioning from a cross-platform mobile development SDK for Android/iOS into a tool that allows you to run the same code natively in a browser on Windows, Linux and macOS. With Flutter 2, non-mobi

CZCarmine ZaccagninoCarmine Zaccagnino·March 17, 2021Frontend
Frontend — Long Hover

Long Hover

I had a very embarrassing CSS moment the other day.

CCChris Coyier·March 16, 2021Frontend
Frontend — Better Line Breaks for Long URLs

Better Line Breaks for Long URLs

CSS-Tricks has covered how to break text that overflows its container before, but not much as much as you might think. Back in 2012, Chris penned “Handling

RLReuben Lillie·March 16, 2021Frontend
Frontend — The Gang Goes on JS Danger

The Gang Goes on JS Danger

The JS Party podcast sometimes hosts game shows. One of them is Jeopardy-esque, called JS Danger, and some of us here from CSS-Tricks got to be the guests

CCChris Coyier·March 15, 2021Frontend
Frontend — Creating Patterns With SVG Filters

Creating Patterns With SVG Filters

For years, my pain has been not being able to create a somewhat natural-looking pattern in CSS. I mean, sometimes all I need is a wood texture. The only

BSBence SzabóBence Szabó·March 15, 2021Frontend
Frontend — CSS Generators — Smashing Magazine

CSS Generators — Smashing Magazine

In a new short series of posts, we highlight some of the useful tools and techniques for developers and designers. This time Iris Lješnjanin brings you CSS Generators: from CSS shadows to easing gradients to CSS overlays to CSS doodles.

ILIris LjesnjaninIris Ljesnjanin·March 15, 2021Frontend
Frontend — The Guide To Ethical Scraping Of Dynamic Websites With Node.js And Puppeteer — Smashing Magazine

The Guide To Ethical Scraping Of Dynamic Websites With Node.js And Puppeteer — Smashing Magazine

All of us use web scraping in our everyday lives. It merely describes the process of extracting information from a website. For a lot of web scraping tasks, an HTTP client is enough to extract a page’s data. However, when it comes to dynamic websites, a headless browser sometimes becomes indispensable. In this tutorial, Andreas Altheimer will build a web scraper that can scrape dynamic websites ba

AAAndreas AltheimerAndreas Altheimer·March 11, 2021Frontend
Frontend — CSS-Tricks Chronicle XXXX

CSS-Tricks Chronicle XXXX

I've been lucky enough to be a guest on some podcasts and at some events, so I thought I'd do a quick little round-up here! These Chronicle posts are just

CCChris Coyier·March 5, 2021Frontend
Frontend — The Importance of Learning CSS

The Importance of Learning CSS

I know so many super-talented developers who share the same achilles heel: CSS. Instead of trying to “outrun” CSS, this article explores why leaning in and going deeper can be a tremendous boon for your development life and your career.

JWJosh W. Comeau·March 3, 2021Frontend
Frontend — Creating An Outside Focus And Click Handler React Component — Smashing Magazine

Creating An Outside Focus And Click Handler React Component — Smashing Magazine

In this article, we’ll look at how to create an outside focus and click handler with React. You’ll learn how to recreate an open-source React component (react-foco) from scratch in doing so. To get the most out of this article, you’ll need a basic understanding of JavaScript classes, DOM event delegation and React. By the end of the article, you’ll know how you can use JavaScript class instance pr

AVArihant VermaArihant Verma·March 3, 2021Frontend
Frontend — CSS Border Font

CSS Border Font

Every letter in this "font" by Davor Suljic is a single div and drawn only with border. That means employing some trickery like border-radius with exotic

CCChris Coyier·February 28, 2021Frontend
Frontend — Next.js on Netlify

Next.js on Netlify

If you want to put Next.js on Netlify, here's a 5 minute tutorial¹. One of the many strengths of Next.js is that it can do server-side rendering (SSR) with a

CCChris Coyier·February 28, 2021Frontend
Frontend — Building A Discord Bot Using Discord.js — Smashing Magazine

Building A Discord Bot Using Discord.js — Smashing Magazine

An introduction to building a Discord bot using the Discord.js module. The bot will share random jokes, assign or revoke user roles, and post tweets of a specific account to a Discord channel. In this article, Subha Chanda will showu you how to build a bot from scratch using JavaScript and with help from Discord.js. He’ll cover the process from building the bot up to deploying it to the cloud.

SCSubha ChandaSubha Chanda·February 25, 2021Frontend
Frontend — A DRY Approach to Color Themes in CSS

A DRY Approach to Color Themes in CSS

The other day, Florens Verschelde asked about defining dark mode styles for both a class and a media query, without repeat CSS custom properties declarations.

CKChristopher Kirk-Nielsen·February 24, 2021Frontend
Frontend — SmolCSS

SmolCSS

A wonderful collection of little layout-related CSS snippets from Stephanie Eckles that serves both as a quick reference and a reminder of how straightforward

CCChris Coyier·February 24, 2021Frontend
Frontend — Hiding Content Responsibly

Hiding Content Responsibly

We've covered the idea of hiding things in CSS many times here, the most recent post being Marko Ilic's "Comparing Various Ways to Hide Things in CSS" which

CCChris Coyier·February 23, 2021Frontend
Frontend — Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine

Create Responsive Image Effects With CSS Gradients And aspect-ratio — Smashing Magazine

A classic problem in CSS is maintaining the aspect ratio of images across related components, such as cards. The newly supported `aspect-ratio` property in combination with `object-fit` provides a remedy to this headache of the past! In this article, Stephanie Eckles will show you how to use these properties, in addition to creating a responsive gradient image effect for extra flair.

SEStephanie EcklesStephanie Eckles·February 23, 2021Frontend
Frontend — Three Ways to Blob with CSS and SVG

Three Ways to Blob with CSS and SVG

Blobs are the smooth, random, jelly-like shapes that have a whimsical quality and are just plain fun. They can be used as illustration elements and background

AMAkash MittalAkash Mittal·February 19, 2021Frontend
Frontend — Barebones CSS for Fluid Images

Barebones CSS for Fluid Images

Zach takes a look at some fundamental HTML+CSS usage for fluid, responsive images. Most of it, I'd say, is what you'd expect, but things get weird when srcset

CCChris Coyier·February 18, 2021Frontend
Frontend — Let’s Create a Custom Audio Player

Let’s Create a Custom Audio Player

HTML has a built-in native audio player interface that we get simply using the <audio> element. Point it to a sound file and that’s all there is to it.

IUIdorenyin UdohIdorenyin Udoh·February 18, 2021Frontend
Frontend — Things You Can Do With CSS Today

Things You Can Do With CSS Today

Some nice coverage from Andy about CSS things that are truly new. If you haven't looked at new things in CSS in, say, a year, I'd bet pretty much all of this

CCChris Coyier·February 17, 2021Frontend
Frontend — CSS Switch-Case Conditions

CSS Switch-Case Conditions

CSS is yet to have a switch rule or conditional if, aside from the specific nature of @media queries and some deep trickery with CSS custom properties. Let’s

YEYair Even OrYair Even Or·February 17, 2021Frontend
Frontend — Is CSS float deprecated?

Is CSS float deprecated?

An interesting conversation came up at work the other day: Should we use the CSS float property now that we have CSS Grid and Flexbox?

RRRobin RendleRobin Rendle·February 11, 2021Frontend
Frontend — Building A Web App With React, Redux And Sanity.io — Smashing Magazine

Building A Web App With React, Redux And Sanity.io — Smashing Magazine

Headless CMS is a powerful and easy way to manage content and access API. Built on React, Sanity.io is a seamless tool for flexible content management. It can be used to build simple to complex applications from the ground up. In this article, Ifeanyi Dike explains how to build a simple listing app with Sanity.io and React. The global states will be managed with Redux and the application will be s

IDIfeanyi DikeIfeanyi Dike·February 11, 2021Frontend
Frontend — Nested Media Queries

Nested Media Queries

We don't have "regular" nesting in CSS. Maybe this becomes a thing someday, or something like it. That would be cool, although that pre-spec doesn't mention

CCChris Coyier·February 9, 2021Frontend
Frontend — SVG within CSS

SVG within CSS

Stefan Judis has a "Today I Learned" (TIL) post explaining how SVGs filters can be inlined in CSS. The idea is that CSS has the filter property which supports

CCChris Coyier·February 8, 2021Frontend
Frontend — Managing CSS Z-Index In Large Projects — Smashing Magazine

Managing CSS Z-Index In Large Projects — Smashing Magazine

We use abstractions and conventions to hide away the tricky and error-prone parts, which in turn makes it easier for everyone who needs to do the same task. The ideas Steven Frieson shares here should be actionable in most applications depending on your styling solution and browser support. Migrating to use this system is not very risky since stacking contexts are already scoped individually; you

SFSteven FriesonSteven Frieson·February 8, 2021Frontend