Skip to content
Carl Victor Fontanos
Carl Victor Fontanos

Carl Victor Fontanos

Software Engineer

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

© 2026

Tutorials

129 tutorials

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

Most read

"3 Days Ago" Without a Library: Intl.RelativeTimeFormat

You do not need moment.js or dayjs to print "yesterday" or "in 3 weeks". The Intl API does relative time, in the user's own language, with zero dependencies.

2 min read 5,470 views Read it
JavaScript Intermediate

Let Users Paste Screenshots Straight into Your App

Ctrl+V with an image on the clipboard fires a paste event carrying a real File object. Ten lines of code turn any form into a screenshot-friendly uploader.

2 min 5,064
JavaScript Intermediate

Responsive JavaScript Without Resize Listeners

Checking window.innerWidth on every resize event is wasteful and drifts out of sync with your CSS. matchMedia gives JavaScript the same breakpoints CSS uses, with change events.

2 min 4,893
CSS Intermediate

CSS-Only Carousels with scroll-snap

A swipeable, momentum-friendly, accessible carousel needs no JavaScript at all. scroll-snap turns a plain overflow container into one, and it feels native because it is.

2 min 4,624
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,515
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,782