색상에 투명도를 입힐때
RGB값은 rgba라는 속성으로 색상에 투명도를 입히가 편한데
HEX값은 #?????? 샵 뒤 여섯자리 뒤에 두자리를 더 붙여서 투명도를 정할수 있지만
투명도의 %마다 코드가 알파벳 숫자 조합으로 되어있어 직관적이지 못하다...
이곳에 들어가서 %별로 코드를 확인 가능하다.
https://css-tricks.com/8-digit-hex-codes/
8-Digit Hex Codes? | CSS-Tricks
Weird right? 4-digit hex codes too. They are a way put alpha transparency information into the hex format for colors. You might be seeing it more all the
css-tricks.com
'CSS' 카테고리의 다른 글
a태그로 앵커기능 사용하기!(부드러운 스크롤) (0) | 2024.01.10 |
---|---|
select태그, input태그의 number타입 화살표 없애기 (0) | 2024.01.09 |