0

With my search, I have found that the following code should make a border go around whole browser window.

Almost ...

Even with zero content within <body>, a vertical scroll bar shows:

html {
    height: 100%;
}

body {
    min-height: 100%;

    margin: 0px;

    border: solid darkgreen;
}

I desperately need a rescue team.

1 Answers1

0

You just need to add box-sizing: border-box; to your body CSS.

html {
    height: 100%;
}

body {
    min-height: 100%;    
    margin: 0px;    
    border: solid darkgreen;
    box-sizing: border-box; // add this line
}

Read more about box-sizing from MDN

Suman Kundu
  • 1,702
  • 15
  • 22