Skip to main content

Posts

Showing posts with the label css color

Intro to CSS: Three CSS Color Types You Could Try

The simplest thing to make our web content attractive is to change text color. There are three CSS color types many programmers are using very commonly. Hexadecimal Hexadecimal is the # plus string of 6 hexadecimal numbers, which range from 0 to F. For example, color:#4B0082 is a purple color. The first two numbers correspond how much red is in the color. The next two numbers correspond how much green in the color, and the last two numbers correspond to how much blue in the color. For example, color #FF0000 means all red.  However, it is impossible to know the exactly hexadecimal for each color. So the easiest way is to find the color on Color Picker to select the color you want. RGB RGB includes three channels: Red, Green and Blue. Each ranges from 0 to 255. For example, if you want your <h1> text to color all green, you can use color: rgb (0,255,0). RGBA Just like RGB, but with an alpha (transparency) channel ranges from 0.0 to 1.0. For e...