How to Remove a Margin Below an Iframe
The "margin" CSS style lets you control the margin between an HTML element such as an iframe and the text that begins under the iframe. You can control all four sides of the iframe, or you can remove only the margin below the iframe. When you set the margin to "0" pixels, no white space is shown between the iframe and the text.
Instructions
-
-
1
Right-click the HTML page you want to edit and select "Open With." Click the HTML editor in the list of programs.
-
2
Press the "Ctrl" and "F" keys to do a search for the iframe. Type "iframe" and press "Enter" to scroll through the HTML to the location of the iframe.
-
-
3
Add the following code to the iframe's tag:
style="margin-bottom:0px;"
The style sets the margin at the bottom of the iframe to zero pixels. This added tag code makes the text wrap directly after the iframe content.
-
1