Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 124
  1. Float labels above filled inputs with :placeholder-shown.

  2. Expand touch targets for mobile without affecting visual layout.

  3. Center button and label text on its cap height with text-box-trim and text-box-edge.

  4. Style for Windows High Contrast and forced color modes with the forced-colors media query and system color keywords.

  5. Apply styles based on a container's name with @container, no size condition required.

  6. Animate native open and close with ::details-content and interpolate-size: allow-keywords.

  7. Avoid orphan words at the end of paragraphs with text-wrap-style: pretty.

  8. Define custom element geometry with CSS border-shape so borders, shadows, and outlines follow the shape.

  9. Use isolation: isolate to contain z-index values within elements and prevent them from overlapping with fixed or floating content outside the container.

  10. Use cascade layers to organize CSS into predictable levels.

  11. CSS Type Scale with pow()

    Build a modular CSS type scale with pow() and custom properties.

  12. Make the first column and the header row of a table both sticky.

  13. Trigger animations when elements enter a scroll range using the CSS animation-trigger property.

  14. Draw rule lines inside grid and flexbox gaps with the CSS row-rule and column-rule properties.

  15. Use 100vw without triggering a horizontal scrollbar.

  16. Build an auto-hiding header that slides away when scrolling down and reappears when scrolling up.

  17. Animate filter, sort, and reorder in a single subtree using element-scoped view transitions.

  18. Use text-spacing-trim to remove the extra full-width space around CJK and quoted punctuation.

  19. Use display: contents to make wrapper elements transparent to grid and flex layouts.

  20. Use :nth-child(n of selector) to count only elements that match a selector, ignoring unrelated siblings.

  21. Apply different styles to elements based on a custom property set on their container.

  22. Pack mixed-height items into columns with display: grid-lanes.

  23. Float plus border-radius still wraps a rectangle.

  24. Keep centered flex and grid rows scrollable with justify-content: safe center.