Why Nostr? What is Njump?
2023-09-27 06:04:47

Ana Tudor đŸ¯ on Nostr: #tinyCSStip #KnowYourDefaults: default direction for a `linear-gradient()` is 180deg ...

#tinyCSStip

#KnowYourDefaults: default direction for a `linear-gradient()` is 180deg (12 o'clock to 6 o'clock).

❌ DON'T
`linear-gradient(to bottom, gold, purple)`

✅ DO
`linear-gradient(gold, purple)`

Both produce the same visual result, but 2nd is easier to read & process, not to mention fewer bytes.

#CSS #CSSgradient #coding #frontend #webDev #webDevelopment

Author Public Key
npub1wzrcns4nynt3aegu8qvxyffxu8k6rahtmx5ll6ap7z24f036y43q0u2nuu