xxxxxxxxxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<style>
.myIframeDIV {
position: relative;
width: 100%;
height: 0;
padding-bottom: xx%; /* the aspect ratio of the ad. Eg: 300x250 is 83% */
}
.myIframeDIV iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0; top: 0;
}
</style>
<div class="myIframeDIV"><iframe class="myIframe" src="xxxx"></iframe></div>