98.css icon indicating copy to clipboard operation
98.css copied to clipboard

Any way we can set window to full width and height?

Open tetron432 opened this issue 2 years ago • 1 comments

I want to make a window full width and height in the browser screen. However, when I tried doing:

<div class="window" style="width: 100%;height: 100%">

There always seems to be gaps of space between the left, right, top, and bottom sides of the screen and the window, as shown here:

98 css window

Is there a way so that that the window can be set to full screen without any of the gaps of space?

tetron432 avatar Dec 05 '23 18:12 tetron432

That's probably your user-agent giving some of the ancestor elements a padding or a margin. Try opening the devtools and hovering over the elements in your document source code, while looking at them being highlighted in the page proper.

chanagaray avatar Dec 30 '23 13:12 chanagaray