How to Use SVGs as a clip-path URL

You need a clipping shape that goes beyond polygon points and rounded corners. You want a reusable, responsive, designer-friendly shape that you can draw once and apply across components, images, and sections. By the end of this article you will clip content with an SVG-defined shape using clip-path: url(…), wire up an external SVG that … Read more

A Guide to CSS filter (Grayscale, Blur, and More)

CSS filter is a powerful, underused tool that lets you style pixels at render time. You can grayscale a photo for a subtle UI, blur thumbnails to hide spoilers, and hue-rotate a card to match a theme, no extra assets, no image editor. In this guide you will build practical utilities and components that showcase … Read more

Understanding the polygon() Function in clip-path

You want crisp angles, diagonal sections, and custom badges without extra wrappers or raster images. The polygon() function in clip-path gives you pixel-sharp, vector-like shapes that respond to the element box. In this tutorial you will learn how polygon() works, how to think in coordinates, and how to build two practical components: a responsive angled … Read more

How to Use shape-margin with shape-outside

Text wraps feel flat when every floated image forces a rectangular gutter. The CSS Shapes module fixes that with shape-outside, and shape-margin is the dial that controls breathing room around the contour. By the end of this article you will build two practical examples: a circular avatar that wraps elegantly, and an angled pullquote that … Read more

How Does border-radius: 50% Create Circles vs. Ovals?

You set border-radius: 50% and expect a perfect circle, yet the result is an oval. The reason is not a bug, it is geometry. By the end of this article you will know exactly how border-radius: 50% behaves, how to guarantee circles, how to intentionally create ovals, and how to apply this to images, avatars, … Read more

What is a “Stacking Context”? Understanding z-index

Every developer hits the moment when z-index stops making sense. You set z-index: 9999 on your tooltip, but it still hides behind a sibling. The missing piece is the stacking context. By the end of this article, you will understand what creates stacking contexts, how they reorder painting, and how to build dependable layers for … Read more

A Complete Guide to CSS linear-gradient()

linear-gradient() is the workhorse behind modern backgrounds, overlays, borders, and even text effects. You will learn the syntax deeply, control angles and hard stops precisely, layer multiple gradients, create crisp stripes with repeating-linear-gradient(), and animate gradients without images. By the end, you will be able to paint polished UI components with a few lines of … Read more

The shape-outside Property: Flowing Text Around Shapes

Text that wraps tightly around shapes sells the layout before the copy even starts. With the shape-outside property you can bend paragraph flow around circles, triangles, and even image silhouettes. By the end of this article you will build a clean article layout where text wraps a circular badge, a triangular callout, and a photo … Read more

Why Do We Use width: 0; height: 0;?

width: 0; height: 0; looks like a bug waiting to happen, yet it powers arrows, carets, pointers, and many small UI details across the web. By the end of this article, you will know exactly why developers set both dimensions to zero, how border-only geometry works, and how to build three practical components: a tooltip … Read more

How to Use background-clip for Text Effects

Text that looks like it is filled with gradients, textures, or photos grabs attention without extra markup or images. The background-clip property can clip a background to the shape of the text itself, which turns any background, linear gradients, repeating patterns, even animated layers, into a crisp text effect. By the end of this article … Read more