+ 1
How can make iframe full width and height?
Check my code and output and please help, thanks. https://code.sololearn.com/WmnviKYU1D6m/?ref=app
7 Respostas
+ 9
/*try this */
body{
margin:0;
}
iframe
{
position:fixed;
top:0;
left:0;
height:100%;
width:100%;
border:none;
}
+ 3
Try vh and vw instead of %
https://www.w3schools.com/cssref/css_units.asp
+ 1
Thank you, that work correctly 💪🎉
0
Give iframe id and then css it width:100%;
height: auto;
0
I try that in css with iframe but didn't work. Thanks
0
I change it, but didn't work..
0
Can I get an element from iframe?
https://code.sololearn.com/WmnviKYU1D6m/?ref=app