IF you are facing problem with layout issues inside iframe (which is normally not there in normal pages) just test these things.
- Iframe is considered as a separate html page. So it needs all the basic tags, from html, head, body.
- It does not get styles from parent, so you need to add manually in the header
- Avoid define styles inside body tag with