Today I Learned - Rocky Kev

TIL using images as borders

POSTED ON:

TAGS:

A client project had me use custom 'pencil-drawing' borders.
That's when I discovered you can use border images to create that effect.

border-image-source
border-image-slice
border-image-width
border-image-outset
border-image-repeat

REFERENCE:
https://developer.mozilla.org/en-US/docs/Web/CSS/border-image


Related TILs

Tagged:

TIL the alternate keyword

If 'alternate' appears along with the stylesheet keyword, the linked file is an alternative stylesheet. It won’t be applied to the document, but it will be ready for when we need it.

TIL Logical Properties

For that sweet sweet Internationalization you want to avoid directional words like 'left', 'right', 'top', and 'bottom'.

TIL Using pseudo-classes in your querySelector!

let notTuna = document.querySelectorAll('.sandwich:not(.tuna)')