

Example #2īackground color and color with rgba values: Because transparent property gives 100% transparency so background color in 2 nd paragraph and text in the last paragraph disappears. So, in the final output, these 2 paragraphs output changed. Whereas in 2 nd and last paragraph background color and color have taken with transparency respectively. So, in the final output, these 2 paragraphs outputs can’t be changed. In the above code first and 3 rd paragraphs taken background and color properties taken without transparent respectively.

Hi,I am with text color and transparent value Examples of CSS Color Transparentīelow are the examples for CSS: Example #1īackground color and color with transparent value: We can set the color of the text to red, green and blue colors with required percentage visibility. We can set background-color to red, green and blue colors with required percentage visibility.Ĭolor of text with transparent value makes color completely transparent (becomes disappear).Ĭolor: rgba(value1, value2, value3, value4) 0 means fully transparent and 1 means fully opaque.

Start Your Free Software Development Course
