Skip to content
Carlo Fontanos
Carlo Fontanos

Carlo Fontanos

Software Engineer

I build web applications and share what I learn along the way.

© 2026

layout

7 tutorials

Step-by-step programming tutorials on PHP, JavaScript, Laravel, WordPress and more.

CSS Beginner

aspect-ratio Killed the Padding-Top Hack

padding-top: 56.25% wrapped in a positioned div was how we faked 16:9 boxes for fifteen years. One property replaces the whole contraption - and prevents layout shift while it's at it.

2 min 996
CSS Beginner

gap Works in Flexbox Too (Kill Your Margin Hacks)

The lobotomized owl, :not(:last-child) margins, negative-margin wrappers - all workarounds for spacing between flex items. gap has worked in flexbox everywhere since 2021.

2 min 3,417
CSS Intermediate

position: sticky Isn't Broken - Your Overflow Is

Sticky elements that refuse to stick are almost always trapped by an ancestor with overflow set, or a parent that is exactly as tall as they are. Here is the debugging checklist.

2 min 747