Common color Codes

Source: Internet
Author: User

Red: #ff0000或 #f00

Different notation and units of values

In addition to the English word red, we can also use the hexadecimal color value #ff0000:

#ff0000; }

To save bytes, we can use the abbreviated form of CSS:

#f00; }

We can also use RGB values in two ways:

#ff0000rgb(100%,0%,0%); }

Note that when RGB percentages are used, the percent sign is written even if the value is 0 o'clock. But in other cases it is not necessary to do so. For example, when the size is 0 pixels, px units are not required after 0, because 0 is 0, regardless of the unit.

Common color Codes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.