Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Temani Afif avatar Temani Afif

Select the last occurrence of an element in the whole document

  • Nicolas Hoizey
  • 31 October 2024
  • CSS
  • 5 reactions
Screenshot of “Select the last occurrence of an element in the whole document”

https://css-tip.com/last-element-dom/

Oh CSS… 😍

5 reactions

5 likes

  1. Mésange à tête rousse avatar
  2. Xavier Zalawa avatar
  3. CSS by T. Afif :verified: avatar
  4. Christoph Heim avatar
  5. CSS by T. Afif :verified: avatar
  • Older: I pierced my fucking nose
  • Newer: Should masonry be part of CSS grid?

Related contents with similar topics

  1. screenshot of Overview of CSS-only scrolling shadows and content fading techniques

    Francesco Schwarz avatar Francesco Schwarz

    Overview of CSS-only scrolling shadows and content fading techniques

    • Nicolas Hoizey
    • 11 February 2026
    • CSS
    • 5 reactions

    When content overflows and the scrollbar is insufficient or intentionally hidden, visual cues such as scroll shadows or fading effects signal that…

  2. screenshot of Try text scaling support in Chrome Canary

    Josh Tumath avatar Josh Tumath

    Try text scaling support in Chrome Canary

    • Nicolas Hoizey
    • 28 January 2026
    • accessibility, em, rem, CSS
    • 1 reaction

    Just like how the tag tells the browser that your website is designed to work for small viewport sizes, the tells the browser, 'Hey, I've designed…

  3. screenshot of A new (or rather, old) approach to typography on the web

    Alvin Leung, Taha Hossain, Shen Gao, Ben Giannis and Rafi Rizky

    A new (or rather, old) approach to typography on the web

    • Nicolas Hoizey
    • 3 December 2025
    • Web, typography, CSS, Design System

    The strongest type systems are opinionated. They respond thoughtfully to the environment they inhabit, carrying a voice that cannot be captured by…

  4. screenshot of Solved By Modern CSS: Section Layout

    Ahmad Shadeed avatar Ahmad Shadeed

    Solved By Modern CSS: Section Layout

    • Nicolas Hoizey
    • 24 October 2025
    • CSS, container queries
    • 18 reactions

    In this article, I took a typical section design and made it more dynamic with container queries, has, clamp, and grid. It’s an example of the potential…

  5. screenshot of Tailwind's @apply Feature is Better Than it Sounds

    Zell Liew

    Tailwind's @apply Feature is Better Than it Sounds

    • Nicolas Hoizey
    • 11 April 2025
    • CSS, Sass, Tailwind
    • 2 reactions

    Tailwind’s utilities are very powerful by themselves, but they’re even more powerful if you allow yourself to use @apply (and allow yourself to…

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy