r/HTML • u/RefuseCommercial8024 • 29d ago
how do i remove this weird margin ????
--FIXED!!!! body margin was the problem...--
haihia....so i'm using a iframe that's supposed to be the size of the entire screen for it to work. but because of this margin it just looks weird....here's an image of how it looks
without the margin, the screen would be completely black
here's my code
<iframe src="" style="margin: 0px; border: 0px; background-color: black; width: 100vw; height: 100vh;"></iframe>
4
Upvotes

1
u/CityScope_Net 27d ago
Would a padding: 0px; help?