#my-iframe iframe { height: 600px; width: 100%; margin: 0; padding: 0; border-style: solid; border-width: 1px; /* to ensure proper scrolling and overflow handling on mobile devices, put this styling in a div wrapper around the iframe because it's unreliable in css: -webkit-overflow-scrolling: touch; overflow: auto; */ }