CSS Issue with webview html


#1

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.


#2

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


#3

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


#4

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.


#5

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

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

#6

Try to set the following css reset

* { margin: 0; padding: 0; }


#7

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