How to remove iframe padding from page

I want to remove the padding (few pixels) of the iframe. when we use an iframe on any page and make its height and width 100%, but it left a few pixels from all sides left, right, up and down. How to remove it. Take a look at this URL. http://mindmaker.org.in/frame.php I am removing the scroll bar from this page, but several pixels are not deleted from all directions.

+5
source share
2 answers

You must reset default <body> indents / fields.

 body { margin: 0; padding: 0; } 

Hope this helps

+5
source

add frameBorder = "0" (capital "B")

 <iframe src="http://pragswebsolution.in/onlinetest/orgnisation.php" height="100%" width="100%" frameBorder="0" style="overflow-y: hidden;"></iframe> 
+1
source

Source: https://habr.com/ru/post/1203391/


All Articles