Define HSL Colors With Alpha Values
.modern-hsl {
background-color: hsl(340deg 100% 50%);
}
.modern-hsla {
background-color: hsl(340deg 100% 50% / 0.75);
}.old-hsl {
background-color: hsl(340deg, 100%, 50%);
}
.old-hsla {
background-color: hsla(340deg, 100%, 50%, 0.75);
}PreviousDefine CSS Custom Properties With CSS VariablesNextDisplay Responsive iframe Maintaining Aspect Ratio
Last updated