Skip to content
Carlo Fontanos
Carlo Fontanos

Carlo Fontanos

Software Engineer

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

© 2026

CSS

40 tutorials

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

CSS Intermediate

The popover Attribute: Dropdowns Without the JavaScript

Toggle behavior, light dismiss, Escape handling, top-layer rendering - the popover attribute gives you all of it declaratively. Menus and tooltips just got dramatically simpler.

2 min 1,715
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 Beginner

Your Animations Might Be Making People Sick

Vestibular disorders make parallax and zoom animations physically unpleasant for a lot of people. Respecting the reduced-motion setting takes ten lines and is table stakes for professional work.

2 min 1,470
CSS Advanced

Animating CSS Gradients (Yes, Really) with @property

Gradients famously cannot be transitioned - until you teach the browser that your custom property is a color or angle. @property makes CSS variables animatable with types.

2 min 2,174
CSS Advanced

content-visibility: The Rendering Shortcut Nobody Uses

One CSS property tells the browser to skip layout and paint for off-screen sections entirely. On long pages it can cut initial rendering work dramatically - no virtualization library needed.

2 min 3,649
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
CSS Intermediate

Fluid Typography with One Line of clamp()

Stop writing a font-size media query for every breakpoint. clamp() scales type smoothly with the viewport between a floor and a ceiling you control.

2 min 4,441
CSS Beginner

:focus-visible Ends the outline: none Wars

Designers hate focus rings on click, keyboard users need them to navigate at all. :focus-visible gives each group what they want - and browsers already use it by default.

2 min 3,708