0

Why should we put font-family in the last in font shorthand in css

If we change font-family order in font shorthand it will not work why?

22nd Sep 2022, 9:29 PM
Fort Wayne
1 Odpowiedź
0
For starters, using css shorthand is not always a good idea. https://csswizardry.com/2016/12/css-shorthand-syntax-considered-an-anti-pattern/ As for why font-family should always be last if you use shorthand, I would guess that it is to avoid conflicts. https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties
22nd Sep 2022, 11:01 PM
Bob_Li
Bob_Li - avatar