Click here to Skip to main content
13,861,366 members
Rate this:
Please Sign up or sign in to vote.
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
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...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190214.1 | Last Updated 30 Jul 2014
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100