Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ Regarding for CSS Opacity

Posted by: Ankit Dixit Mar 23 2021, 05:05 AM

Hello All, I am new in this community and I am in my learning face to attend the CSS Interview, I want to know about CSS opacity, As my research CSS opacity is the property used to describe the transparency of an element but I have given this answer in my previous interview and interviewer not satisfied with this. Can anyone suggest me the exact meaning and working of CSS opacity?

Posted by: pandy Mar 23 2021, 05:11 AM

Hi and welcome to the forums! smile.gif

Maybe they want you to say it controls opacity? Or they want more details.

Posted by: Christian J Mar 23 2021, 08:50 AM

To be exact, opacity is actually the opposite of transparency, so when opacity is set to zero the element will be fully transparent. You could also mention how the opacity property and its values are specified in CSS, how the opacity affects child elements, and any potential accessibility issues.

See also https://developer.mozilla.org/en-US/docs/Web/CSS/opacity

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)