White space around css3 scale

后端 未结 6 505
感情败类
感情败类 2020-11-27 16:35

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

6条回答
  •  猫巷女王i
    2020-11-27 17:33

    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);

提交回复
热议问题