How to fit height and with from following CSS:

How to fit height and with from following CSS:
0

#1

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?

Thanks


#2

Is a very popular question and no answer.


#3

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