Ana Tudor 🐯 · @anatudor
368 followers · 128 posts · Server mastodon.social

Bonus tip to the one @chenry shared mastodon.social/@chenry/109325 - 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: codepen.io/thebabydino/pen/JjZ

Because `border-image` only accepts one gradient image (can't have more to get ⭐ or ❤️ patterns) & doesn't play nice with `border-radius` (codepen.io/thebabydino/pen/jxZ).

#css #CSSTips #tinycodingtips #codepen

Last updated 2 years ago

Dr Hitchcock · @drh
229 followers · 1570 posts · Server octodon.social