Instead of adjusting your overall background or the color of the text to make the foreground easily readable, you can add background color to the element holding the text you want to emphasize.
Adjust the background color property of a text:
The full form of rgba is:
r----> red
g -----> green
b -----> black
a -----> alpha/ level of opacity.
This challenge uses the rgba instead of hex codes or normal rgb().
The RGB values can range from 0 to 255. The alpha value can range from 1, which is fully opaque or a solid color, to 0, which is fully transparent or clear.
rgba() is great to use in this case, as it allows you to adjust the opacity. This means you don't have to completely block out the background.
The syntax of the background color property is:
No comments:
Post a Comment