Good morning, I'm no expert on this and I'm tired of looking for a solution to counter the skew given to the main container. Basically all the solutions that I have been able to understand so far do not solve.
The elements above the image I got through css make the skew transform opposite to the main container and everything was ok, but I can not do the same to the background image that is being called in the control (since it does not have a direct path, has a relationship with folders to which it fetches this image).
ASP.NET
divBedroomContainer.Attributes.Add("style", "background-image: url(" + trimmedFolder + trimmedBedroom + ".jpg)");
CSS
.Bedrooms {
-webkit-backface-visibility: hidden;
-webkit-transform: skewY(-2.7deg);
transform: skewY(-2.7deg);
outline: 1px solid transparent;
}
.BedroomContainer {
float: left;
width: 33.3334%;
background-repeat: no-repeat;
background-size: cover;
position: relative;
height: 400px;
text-align: center;
overflow: hidden;
}