html - Fit iframe content within div with percentage -
so i'm trying scale content of iframe fit width , height of div. div wrap has width 60% within div width 100%, not shown below.
i iframe take 60% 100% inside. heights 100% divs. please can me!? im using scale css property each browser.
<div class="iframe-wrap"> <iframe class="iframe" frameborder="0"></iframe> </div> not sure, css3 this?
zoom: 0.75; -moz-transform: scale(0.75); -moz-transform-origin: 0 0; -o-transform: scale(0.75); -o-transform-origin: 0 0; -webkit-transform: scale(0.75); -webkit-transform-origin: 0 0; thanks!!
.iframe { display: block; width: 100%; }
Comments
Post a Comment