A
A
aryan112021-11-10 08:52:38
Browsers
aryan11, 2021-11-10 08:52:38

Why does the display of the browser window size change when the body is removed on any sites and in any browsers?

Hello!
I noticed a strange thing while doing this. I turn on the developer tools, and depending on whether the page has a body, the size of the window is shown differently (if there is a body, it shows that the window is 18px smaller. As soon as I delete the body, the size does not actually change, but the correct value appears in the size indicator, t .e. 18px more). This happens on absolutely all sites (habr.com, etc.) and in all browsers, how is this to be understood?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-11-10
@delphinpro

Scrollbar width?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question