CSS Issue with webview html


Hi. I have an issue regarding the display of my electron app. the webpage does has a space that I can’t seem to remove.


As you can see above. It is the red-colored background that I can’t remove.


I think this is margin issue.
Did you set the margin of of Body tag in main HTML properly?


I already tried both the html tag and body tag and set the margin to 0 but the space is still there. Are there other ways to fix this? I have a {width: 1024,height: 768} for my browser window.


can you try as following? or provide the HTML code?

  <body style="margin:0">
    <webview id="foo" src="https://www.github.com/"></webview>


Try to set the following css reset

* { margin: 0; padding: 0; }


Thanks for the help! I really appreciate it! I actually forgot to import my css file in my html file. hehehe