본문 바로가기

CSS

Color의 HEX값으로 투명도까지

색상에 투명도를 입힐때

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