KH

Posts

My rambling opinions specifically about coding .

coding css Jan 28, 2024 3 min read

Aspect-ratio is so easy and so awesome

The aspect-ratio CSS property is so easy and awesome, how could you not love it? Let's look at the old way, and the new way of achieving an element at a specific aspect ratio.

coding css Jul 8, 2022 3 min read

Line clamp, I love you

Multi-line truncating has always been rough. But, what if I told you, you could do it with pure CSS? Yes! It's possible!

coding html Aug 17, 2019 6 min read

Iframe lazy loading - srcdoc to the rescue?

Iframes can be an expensive resource, especially for videos. Lazy loading iframes isn't as easy as it should be, but maybe the srcdoc attribute can help.