How can I memorize all CSS shorthands?

后端 未结 5 986
渐次进展
渐次进展 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:20

    Use an editor that understands the shorthand syntax and gives you some degree of auto complete on them. I too don't need one that tells me margin goes top, right, bottom, left, but it is useful to have one that tells me the options for background for example.

    Visual Studio does this - it won't be the right choice for everyone obviously, but if Visual Studio does it I'm sure there must be many others that do too.

提交回复
热议问题