Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Images have become semi-transparent when using opacity property. Why? Re: Images have become semi-transparent when using opacity property. Why?

#93782
Manojsethi
Participant

the opacity property of css inherits the property of parent class. use rgba command as
rgba(0,0,0,0.5);
first 3 numbers are rgb code and last 4th is 0.5 is opacity.
hope it works for you