home.social

#tinycodingtips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #tinycodingtips, aggregated by home.social.

  1. 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