How can I memorize all CSS shorthands?

后端 未结 5 984
渐次进展
渐次进展 2021-02-09 18:33

I never forgot and always use shorthand for margin and padding because it runs clockwise, but how do you remember the others?

Do you use CSS sh

5条回答
  •  别那么骄傲
    2021-02-09 19:13

    I personally am not good at memorizing such things, so I use the specific attributes, background-position background-image background-repeat etc. instead of the shorthand.

    I find it's less error prone, and makes for more maintainable code: You can search & replace specific settings project-wide, which is impossible when using shorthand.

提交回复
热议问题