티스토리 뷰

AU Study/TAFE

CSS color

Last72 2017. 7. 29. 18:20
color, background-color.


color is refer main color, background-color is refer background color.
Foreground color refers to the actual color of an element, styled with the color property.

Background color refers to the color behind an element, styled with the background-color property.


for special color such as lime.
There are 147 named colors available.


rgb can be either decimal number or hexadecimal number. 0-255 or 00-FF
RGB and hexadecimal colors offer over 16 million color possibilities.


hsl is another way to express color
HSL is a new way of defining colors in CSS3.


by adding a at rgb and hsl, a refer the opacity. 0-1, 0 is invisible.
You can modify the opacity of a color with RGBa or HSLa colors.


Not all browsers support newer CSS features, like opacity or HSL, so additional declarations should be made to support a wide audience of users.


There are many color picker resources available on the Internet to help you select specific colors, as well as provide colors in different formats.

'AU Study > TAFE' 카테고리의 다른 글

W2 Fri afternoon  (0) 2017.07.29
W2 Fri morning  (0) 2017.07.29
W2 this afternoon  (0) 2017.07.29
W2 thu morning  (0) 2017.07.29
CSS  (0) 2017.07.29
댓글
Announcement
Recent Posts
Recent Comments
Total
Today
Yesterday
Link
TAG
more
«   2025/01   »
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
Search by month