How to fit height and with from following CSS:

transform: scale(1.4,1.4);

How to fit scale when use it with opacity: 0.5;?

I mean there have missing place come from scale. As the background not fill it? Try with object-fit: cover; but not work Any IDea?


Is a very popular question and no answer.

Couldn’t get you.? If you want the background image to fill the container use background position cover and on scale, make the container as overflow hidden, if you could provide a codepen to your sample it would be easy to sort it out