Share This
Get in Touch
Scroll Down
//css-tricks.com

HTML is Not a Programming Language?

HTML is not a programming language. I’ve heard that sentence so many times and it’s tiring. Normally, it is followed by something like, It doesn’t have logic, or, It is not Turing complete,.so… obviously it is not a programming language. Like it’s case-closed and should be the end of the conversation. Should it be, though? I want to look at typical arguments I hear used to belittle HTML and offer my own rebuttals to show how those claims are not complet..

Read more
  • 0 Comment

Unicode Arrows

Looks like… 253 of them. I love the little water ⥾ spout one. (U+297e). Because. And I like how it’s a fairly useful little site at a great domain and with a little business model behind it. Reminds me of a little feature I like in Notion where if you type dash-arrow (like ->) it turns into → — but intelligently — like it doesn’t do that with inline code or a code block. Direct Link to Article — Permalink The post Unicode Arrows appeared first on CSS-T..

Read more
  • 0 Comment

Building a Cool Front End Thing Generator

Whether you are just starting out on the front end, or you’ve been doing it for a long time, building a tool that can generate some cool front-end magic can help you learn something new, develop your skills and maybe even get you a little notoriety. You might have run across some of these popular online generators: The Hero Generator and CSS Grid Generator by Sarah DrasnerGlassmorphism CSS Generator by ThemesburgText Shadows by Components AI (and they have a ton more)..

Read more
  • 0 Comment

Stay alert

A few days ago, Chris wrote up his thoughts about how alert(), confirm(), and prompt() were being deprecated by Chrome and collected a bunch of thoughts from developers. If certain features can essentially be turned off by a major browser, a lot of folks started to worry about the predictability of the web. On that note, I really liked this note by Richard Harris: We can’t normalise the attitude that collateral damage is the price of progress, even if we accept the p..

Read more
  • 0 Comment

Using Web Components in WordPress is Easier Than You Think

Now that we’ve seen that web components and interactive web components are both easier than you think, let’s take a look at adding them to a content management system, namely WordPress. There are three major ways we can add them. First, through manual input into the site—putting them directly into widgets or text blocks, basically anywhere we can place other HTML. Second, we can add them as the output of a theme in a theme file. And, finally, we can add them as the o..

Read more
  • 0 Comment

Wanna see a whiter white?

Heck of a CSS trick here from Dongsung Kim. There are hidden HDR videos playing at the corners of this page. When a HDR-capable browser encounters one, it switches to HDR mode. For some reason, CSS backdrop-filter + brightness >100% combo seems to behave like HDR—reaching beyond the user-controlled display brightness, up to the maximum HDR brightness—while the everything in between follow[s] along. At least that’s the overall idea, but I still don’t know exactl..

Read more
  • 0 Comment

Images are hard.

Putting images on websites is incredibly simple, yes? Actually, yes, it is. You use <img> and link it to a valid source in the src attribute and you’re done. Except that there are (counts fingers) 927 things you could (and some you really should) do that often go overlooked. Let’s see… Make sure you use sentence-format alt text on the image to describe what the image depicts. Wrap it in a <figure> and use a <figcaption> if you want visible text that..

Read more
  • 0 Comment

Practical Use Cases for Scroll-Linked Animations in CSS with Scroll Timelines

The Scroll-Linked Animations specification is an upcoming and experimental addition to CSS. Thanks to the @scroll-timeline at-rule and animation-timeline property this specification provides, you can control the time position of regular CSS Animations by scrolling. In this post, we’ll take a look at some practical use cases where scroll-linked animations come in handy, replacing a typical JavaScript approach. 👨‍🔬 The CSS features described in this post are..

Read more
  • 0 Comment

WordPress Admin Warnings in the Block Editor

We sent out an email the other week that ultimately had a <video> in the HTML markup. We send the newsletter by creating it here in the WordPress block editor, which is fetched through RSS-to-Mailchimp. Mailchimp dutifully sent it out, but the HTML was such that it totally borked the layout. This lead to some charming totally fair emails like this: You actually can send <video> in HTML email, but our system just isn’t set up for it. It requires some f..

Read more
  • 0 Comment

Of Course We Can Make a CSS-Only Clock That Tells the Current Time!

Let’s build a fully functioning and settable “analog” clock with CSS custom properties and the calc() function. Then we’ll convert it into a “digital” clock as well. All this with no JavaScript! Here’s a quick look at the clocks we’ll make: GitHub repo Brushing up on the calc() function CSS preprocessors teased us forever with the ability to calculate numerical CSS values. The problem with pre-processors is that they lack knowledge of t..

Read more
  • 0 Comment
Get in Touch
Close