how do I remove the edges of the iframe on a web page?

0

I have this line of code, and on the main page, the borders of the iframe do not appear but when I give the link to call another page, there if the lines appear. I would like to know how to remove them. Thanks

<center>
<iframe name='nombre' width="1000" height="500" frameborder="0" scrolling="no"></iframe>
</center> 
    
asked by Trujillo Silva Lila Yiseth 20.06.2016 в 23:39
source

3 answers

1

your code is correct, only the word frameBorder carries a capital B .. That code works for HTML 4, if you're writing code for HTML 5, better use seamless='seamless' since it no longer supports frameBorder

    
answered by 21.06.2016 в 06:46
0

You can use css for that, like this:

<style>
iframe{
border:none;
}
</style>
    
answered by 21.06.2016 в 07:05
0

When I do an iframe of a full screen web I do it that way. Let's see if it helps you.

<body>
<iframe src="http://es.stackoverflow.com" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
</iframe>
</body>

Currently I am using it on a website and it works very well for me.

    
answered by 21.06.2016 в 07:12