mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): clarify HSLA alpha can be a percentage in HSL lesson (#63897)
Signed-off-by: Bakshi Suhas <2410030479@klh.edu.in> Co-authored-by: Bakshi Suhas <2410030479@klh.edu.in>
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ div {
|
||||
|
||||
:::
|
||||
|
||||
This code would give the `div` a semi-transparent red background, where the hue is set to `0` degrees (red), saturation is `100%`, lightness is `50%`, and alpha is `0.5` (50% opacity).
|
||||
This code would give the `div` a semi-transparent red background, where the hue is set to `0` degrees (red), saturation is `100%`, lightness is `50%`, and alpha is `0.5` (50% opacity). You can also specify the alpha as a percentage — for example, `hsla(0, 100%, 50%, 50%)` is equivalent to `hsla(0, 100%, 50%, 0.5)`.
|
||||
|
||||
The HSL color model is particularly useful when you need to create color schemes and adjust shades or tints easily.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user