What is Opacity in CSS3?

Questions by Robert   answers by Robert

Showing Answers 1 - 9 of 9 Answers

Sandeep

  • Jan 6th, 2012
 

Opacity is used to show or hide the html element
For example 0 for hide and 1 for show

Code
  1. <p style="opacity: 0">Show Me</p>

  2. <p style="opacity: 0.5">Show Me</p>

  3. <p style="opacity: 1">Show Me</p>

  Was this answer useful?  Yes

ankit srivastava

  • Dec 20th, 2012
 

The Opacity declaration sets how opaque an element is. An opacity value of 1 means the element is fully opaque; an opacity value of 0 means an element is not at all opaque, i.e. fully transparent.This elements opacity is 0.5! Note that both the text and the background-color are affected by the opacity level!

  Was this answer useful?  Yes

hardyal

  • Oct 12th, 2017
 

Opacity is used to make transparency.

Code
  1. opacity: 0.5;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions