![]() ![]() ![]() These basic color keywords are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. When secondary is applied to a button, not only is the base color 006600 used, but the contrast color ffffff is used for the text, along with shade 005a00 and tint 1a751a colors for the different states of the button. We'll learn about them in greater detail in CSS3 color chapter.įor now, let's stick to the basic methods of defining the color values: Color KeywordsĬSS defines the few color keywords which lets you specify color values in an easy way. a HEX value - like "#ff0000", "#00ff00", etc.ĬSS3 has introduced several other color formats such as HSL, HSLA and RGBA that also support alpha transparency.a color keyword - like "red", "green", "blue", "transparent", etc.For example, if you specify color for the body element it will automatically be passed down to the headings, paragraphs, etc.Ĭolors in CSS most often specified in the following formats: ![]() Note: The color property normally inherits the color value from their parent element, except the case of anchor elements. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |