![]() ![]() In most cases using shorthand hex colors is the most efficient way to specify colors. This technique saves a few bytes for each color abbreviated with shorthand hex notation. orange īrowsers automatically expand these three-character colors into six by replicating the R, G, and B values. Hexadecimal colors come in two flavors: RGB triplets and shorthand. ![]() ![]() The two most efficient ways are hexadecimal and named colors. There are five ways to specify colors in CSS four use numeric RGB values and one uses named colors. Combined with shorthand properties and grouping, shorthand hexadecimal colors can shrink style sheets dramatically, often by 50%. Shorthand hex notation abbreviates 6-character RRGGBB CSS colors into 3-character RGB shorthand. Shorthand hexadecimal colors can help optimize your style sheets, especially when combined with shorthand properties and grouping. Summary: Shorthand hex notation substitutes 3-character color values for 6-character colors when each of the color channels is identical in an RRGGBB hex triplet. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |