View Single Post
Old 07-17-2020, 05:30 PM   #1
simurq
Member
simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.
 
Posts: 20
Karma: 1000010
Join Date: Jul 2015
Device: Kindle Paperwhite v1
How can I sort CSS properties alphabetically?

I can see that sorting style rules is possible but what about sorting the properties inside a block, particularly a lengthy one. I know, it may break the priority of properties inside the block but this can be prevented by a user warning same as the existing sorting option.

e.g. from this:

Code:
img {
  width: 20%;
  max-width: 30%;
  padding-top: 40px;
  max-height: 30%;
}
to this:

Code:
img {
  max-height: 30%;
  max-width: 30%;
  padding-top: 40px;
  width: 20%;
}
Thanks!

Rustam
simurq is offline   Reply With Quote