SMRTR ProgrammingNov 3, 2025Daily.dev

The “Most Hated” CSS Feature: tan()

SMRTR summary

The State of CSS 2025 survey labeled trigonometric functions as the "Most Hated" CSS feature. The tan() function proves especially useful for creating polygonal shapes by calculating perfect triangle heights when arranging elements in circular patterns like menus or image galleries. By dividing 360 degrees by the number of elements and using tan() to determine dimensions, developers can create responsive geometric layouts that automatically adjust regardless of container size or item count.

SMRTR provides this summary for quick context. The original article belongs to Daily.dev.

Read the original article
SMRTR Programming

Get the next batch of curated summaries in your inbox.

This archive is built from SMRTR newsletter summaries. Subscribe for hand-picked stories without the extra noise.