Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Remove Padding of Iframe from page

I want to remove padding (few pixel) of iframe. when we use iframe in any page and make its height & width 100% but it left few pixels from all side left, right, up & down.how to remove it. Please look at this URL. http://mindmaker.org.in/frame.php i have remove scroll bar from this page but few pixels are not remove from all side

like image 860
user3443146 Avatar asked Sep 25 '14 11:09

user3443146


2 Answers

You have to reset default <body> padding / margin.

body {
  margin: 0;
  padding: 0;
}

Hope this helps

like image 71
emmanuel Avatar answered Oct 15 '22 01:10

emmanuel


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

<iframe src="http://pragswebsolution.in/onlinetest/orgnisation.php" height="100%"         width="100%" frameBorder="0" style="overflow-y: hidden;"></iframe>
like image 26
Bart Hofma Avatar answered Oct 15 '22 01:10

Bart Hofma