html5 - CSS Transform does not increase parent div height -


i have added 2 divs 1 parent , other child.

<div class="parent_div">      <div class="child_div_with_transform">      </div> </div> 

i have added webkit-transform child div. want set parent div height same it's child div after transform. want remove scrollbar.

you can ref. following code.

http://jsfiddle.net/sab2t/

i love try solution.

try this

add

.parent  { display:table;  // add parent width:400px;    // per requirement }  .child { display:table-row; // add child } 

it solve problem. have jsfiddle


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -