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.