#tinycodingtips — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #tinycodingtips, aggregated by home.social.
-
Bonus tip to the one @chenry shared https://mastodon.social/@chenry/109325956277772390 - you can have a `background` for an `<img>`.
This helps with getting a gradient `border` for the image when the image also has rounded corners or for a multi-gradient layer `border` pattern: https://codepen.io/thebabydino/pen/JjZNXoQ
Because `border-image` only accepts one gradient image (can't have more to get ⭐ or ❤️ patterns) & doesn't play nice with `border-radius` (https://codepen.io/thebabydino/pen/jxZyed).