Skip to main content
CSS-Tricks
Since 2007
  • Articles
  • Guides
  • Almanac
  • Links
  • Picks
  • Newsletter
  • Search
Articles by

Temani Afif

CSS Loaders — CSS Shape — CSS Generators — CSS Tip — CSS Pattern — CSS Challenges

@ChallengesCss · support.temani-afif.com

Eight examples of CSS shapes, including two red hearts, two yellow sunbursts, two floors, and two blue jagged rectangles, the latter of each is a cutout against a solid background.
Direct link to the article Get Ready For the Powerful CSS border-shape Property!
border-shape borders css shapes

Get Ready For the Powerful CSS border-shape Property!

We recently got the shape() function and corner-shape property. What else could we possibly need as far as making shapes in CSS? Let me tell you: the border-shape property!
Jul 31, 2026
The word Center in white next to an orange square to the left. Both are equal height against a black background.
Direct link to the article The State of CSS Centering in 2026
anchor positioning flexbox grid layout

The State of CSS Centering in 2026

Despite the countless number of online resources, it’s easy to get confused when trying to center an element. There are documented solutions, but do you really understand why the code you picked works? Let's look at the current state of centering options today in 2026.
May 22, 2026
Three rectangular shapes with jagged, non-creating edges. the first is blue, then orange, then green.
Direct link to the article Making Complex CSS Shapes Using shape()
clip-path CSS functions css shapes shapes

Making Complex CSS Shapes Using shape()

Creating rectangles, circles, and rounded rectangles is the basic of CSS. Creating more complex CSS shapes such as triangles, hexagons, stars, hearts, etc. is more challenging but still a simple task if we rely on modern features.
Apr 2, 2026
A stack of hexagon shapes arrange in a pyramid grid. Each shape is labeled 1 through 28.
Direct link to the article Making a Responsive Pyramidal Grid With Modern CSS
grid math functions shapes

Making a Responsive Pyramidal Grid With Modern CSS

This is the second part of a small two-part series. In this article, we will explore another type of grid: a pyramidal one. We are still working with hexagon shapes, but a different organization of the elements., while exploring other different shapes.
Feb 12, 2026
A grid of hexagon shapes of equal size that alternate between blue and red. Each shape is labelled by it's order in the grid.
Direct link to the article Responsive Hexagon Grid Using Modern CSS
CSS functions math shapes

Responsive Hexagon Grid Using Modern CSS

A while back, Temani tacked a repeating grid of hexagon shapes. Well, he's updated it with modern CSS features that result in fewer magic numbers. And it's impressive!
Jan 23, 2026
Direct link to the article Responsive List of Avatars Using Modern CSS (Part 2)
container-queries images list mask

Responsive List of Avatars Using Modern CSS (Part 2)

In this article, we follow up the work we did to create responsive rows of circular images in a previous article by arranging the images around a circle with a clean hover effect.
Dec 17, 2025
Two rows of circular avatar images. The images overlap with one another. Teach row has six images.
Direct link to the article Responsive List of Avatars Using Modern CSS (Part 1)
images mask

Responsive List of Avatars Using Modern CSS (Part 1)

A list of rounded images that slightly overlap each other is a classic web design pattern. The main idea is not complex, but the new thing is the responsive part. that dynamically adjusts the overlap between the images so they fit inside the container.
Dec 15, 2025
A series of six dits in a single row. Five are the same size and colored dark gray. The fifth item is scaled slightly smaller and colored gold.
Direct link to the article Sequential linear() Animation With N Elements
animation CSS functions

Sequential linear() Animation With N Elements

Let’s suppose you have N elements with the same animation that should animate sequentially. Modern CSS makes this easy and it works for any number of items!
Oct 15, 2025
Direct link to the article Better CSS Shapes Using shape() — Part 4: Close and Move
art clip-path CSS functions css shapes

Better CSS Shapes Using shape() — Part 4: Close and Move

The shape() function's close and move commands may not be ones you reach for often, but are incredibly useful for certain shapes.
Jul 7, 2025
Diagrammiong a rounded rectangular shape in three stages, first with sharp edges, then with points indicating where the curve control points are, then the completed shape.
Direct link to the article Better CSS Shapes Using shape() — Part 3: Curves
art clip-path CSS functions css shapes

Better CSS Shapes Using shape() — Part 3: Curves

This is the third article in a series about the CSS shape() function. We've covered drawing lines and arcs in previous articles and, this time, we look specifically at the curve command and how to use it for drawing complex shapes.
Jun 6, 2025
  • 1
  • 2
  • 3
  • ...
  • 6
  • Older

CSS-Tricks is powered by DigitalOcean.

Get Curated Front-End Roundups Right in Your Inbox

Coming back really, really soon! See past issues →

CSS-Tricks
  • About the site
  • Contact us
  • Write for CSS-Tricks!
  • Advertising
  • RSS Feeds
Social
  • Bluesky
  • Mastodon
  • CodePen
  • X / Twitter
  • LinkedIn
Legalese
  • CSS-Tricks License
  • AI Statement
Back to Top