Click here to Skip to main content
16,016,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, I am looking for a way to adjust the transform on the background.
I had to use a <img> tag instead of a background image on a
to achieve the desired effect. Can anyone recommend a solution that could center the <img> while maintaining the proportions when it goes 100% width? Usually I would use a background image with a contain property to achieve this effect, but since I've had to use a <img> tag in order to get this effect working, I'm unable to do that.
Please help me. Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 30-Jul-14 14:14pm    
The purpose of the transformation is to apply it on the content of the element. What would be the value of the transformation if it wasn't the case? The question is: what would transformation of the div without it content mean? Just the transformation of the border?
You need to explain the whole view you want to get. Do you want to cover by your transformation anything else? What exactly? If there is no an answer to this question, it would mean that you want transformation and no transformation at the same time...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900