일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 파이선
- Unreal
- CSS
- dictation
- cout
- python
- unreal engine4
- Euler
- Java
- 코딩도장
- 영알남
- Project
- Notting hill
- cow
- Polymorphism
- endl
- if
- font weight
- 연결리스트
- 파이썬
- for
- codecademy
- std
- C++
- bool
- Bull
- html5
- 알고리즘
- html
- UE4
Archives
- Today
- Total
CSS Color Review 본문
Color Review
We've completed our extensive tour of the colors in CSS! Let's review the key information we've learned.
There are four ways to represent color in CSS:
Named colors — there are 147 named colors, which you can review here.
Hexadecimal or hex colors
- Hexadecimal is a number system with has sixteen digits, 0 to 9 followed by "A" to "F".
- Hex values always begin with
#
and specify values of red, blue and green using hexademical numbers such as#23F41A
.
RGB
- RGB colors use the
rgb()
syntax with one value for red, one value for blue and one value for green. - RGB values range from 0 to 255 and look like this:
rgb(7, 210, 50)
.
- RGB colors use the
HSL
- HSL stands for hue (the color itself), saturation (the intensity of the color), and lightness (how light or dark a color is).
- Hue ranges from 0 to 360 and saturation and lightness are both represented as percentages like this:
hsl(200, 20%, 50%)
.
You can add opacity to color in RGB and HSL by adding a fourth value,
a
, which is represented as a percentage.
'Programming > 웹 개발' 카테고리의 다른 글
Google Fonts (0) | 2018.01.12 |
---|---|
CSS font-size, line-height, leading (0) | 2018.01.12 |
서브라임 단축키 (필요한 것만 계속 추가) (0) | 2018.01.12 |
CSS Visual Rules (0) | 2018.01.12 |
CSS Selectors Review (0) | 2018.01.12 |
Comments