How to make adaptive layout inside the iframe?

Let's say that on the website within the advertising banner contains iframe, the iframe dimensions accordingly to the size of the banner. When a certain action inside this iframe loaded form with a checkbox.
If the size of the banner, e.g., 300*250, the form displays correctly. If 640*63, then the form looks crooked and cropped top.
Need to mark up this form so that it is adapted to different sizes of the banner/iframe. When adaptive layout pages using, for example, media queries in css to specify the position of elements depending on the screen width. How to do in this case, i.e. depending on the size (width) of the iframe? How to register in css?
I'd appreciate any advice.
July 2nd 19 at 13:43
1 answer
July 2nd 19 at 13:45
It is necessary for different sizes of banners, shipping different code. This is easier than trying to cram nevpihuemoe

Find more questions by tags HTMLCSSLayoutiframeAdaptive design