Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've tried with all possible ways that I found in many sites but none of them worked out.

I've tried with:
CSS
html,body
{
  margin:0px;
  padding:0px;
  border:0px;
}

iframe
{
    margin:0px;
    padding:0px;
    border:none;
    overflow:hidden;
}


Please suggest
Posted
Updated 2-Dec-15 19:55pm
v3
Comments
Sergey Alexandrovich Kryukov 3-Dec-15 0:55am    
Looks right. Maybe the problem is in the content of iFrame, in in iFrame?
—SA
Member 12168078 3-Dec-15 1:41am    
I checked that as well but I don't think the content is causing the problem.There is some hidden space below. Dunno what could be the possible reason.

1 solution

In disbelieve, I just tested this situation with Mozilla, Chrome and Opera, latest versions. There is no such problem. To check it up, do the following: apply the same CSS to the source HTML you put in iframe — you will see no space.

You just need to do your observations correctly and use some logic. One incorrectness looks very apparent: from the very beginning, you provided you CSS for the host page, but did not present a test sample for the source HTML file of the iframe. I immediately suspected that the real problem is that file, and you denied it, and, again, did not provide any evidence. (Elementary, Watson.)

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900