I have a small issue I want to fix, but can\'t find any good answer :
When I use a scale on a div (which contains other divs), it leave white space around, from the
I resolved my problem like yours that way.
I have a main container and I want decrease it
my css:
.grid-container.full {
transform: scale(0.6);
transform-origin: top center;
}
but my container had the bigger margin bottom. then I do it:
$mainGrid = $('.grid-container.full')
$mainGrid.css('height', $mainGrid.height() * .6);