Creating Non-Rectangular Headers | CSS-Tricks

article thumbnail

Over at Medium, Jon Moore recently identified "non-rectangular headers" as a tiny trend. A la: it's not crazy popular yet, but just you wait, kiddo. We're talking about headers (or, more generally, any container element) that have a non-rectangular shape. Such as trapezoids, complex geometric...

Deep dive CSS: font metrics, line-height and vertical-align - Vincent De Oliveira

article thumbnail

An introduction to the inline formatting context. Explores line-height and vertical-align properties, as well as the font metrics. Understand how text is rendered on screen, and how to control it with CSS....

The Unexpected Power of Viewport Units in CSS | Lullabot

article thumbnail

Viewport units are one of the lesser known gems in modern web design. They offer developers strong flexibility and accuracy when using CSS. ...

Transparent JPG (With SVG) | CSS-Tricks

article thumbnail

Let's say you have a photographic image that really should be a JPG or WebP, for the best file size and quality. But what if I need transparency too? Don't...

CSS Grid, Flexbox And Box Alignment: Our New System For Web Layout – Smashing Magazine

article thumbnail

In this article, Rachel Andrew explains that by understanding flexbox you are very close to understanding much of grid layout. Please note that this article is quite lengthy, and contains dozens of CodePen embeds for an interactive view. The page might take a little while to load, so please be...

An Animated Intro to RxJS | CSS-Tricks

article thumbnail

You might have heard of RxJS, or ReactiveX, or reactive programming, or even just functional programming before. These are terms that are becoming more and...

Introduction to Web Audio API | CSS-Tricks

article thumbnail

Web Audio API let's us make sound right in the browser. It makes your sites, apps, and games more fun and engaging. You can even build music-specific appli...

Spoooooky CSS Selectors | CSS-Tricks

article thumbnail

Let's get into the spirit a little bit this year with some Halloween themed posts! I'll kick it off with some CSS selectors FROM BEYOND THE GRAVE. Er. CSS...

Input Masking | CSS-Tricks

article thumbnail

I don't have any UX research to cite, but anecdotally, I like it when inputs that expect data in a specific format us an input mask. I thought I'd just lin...

Responsive Images in CSS | CSS-Tricks

article thumbnail

The term "responsive images" has come to mean "responsive images in HTML", in other words, the srcset and sizes attribute for and the element. But how do t...

Random Interesting Facts on HTML/SVG usage | CSS-Tricks

article thumbnail

Last time, we saw how the average web page looks like using data from about 8 million websites. That's a lot of data, and we've been continuing to sift thr...

The SVG `path` Syntax: An Illustrated Guide | CSS-Tricks

article thumbnail

The element in SVG is the ultimate drawing element. It can draw anything! I've heard that under the hood all the other drawing elements ultimately use path...

whatstrend.in