med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

408
active users

#cssgradient

0 posts0 participants0 posts today
Continued thread

We make the background-size fit an integer number of times within the viewport width and height.

We need length division for that, so we use the tan(atan2()) hack by @JaneOri.

Then, we set box dimensions/ margins to be multiples of background-size reddit.com/r/css/comments/1gp4

Really cool thing is it works well on zoom, see it on @codepen
codepen.io/thebabydino/pen/ZEg