Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tetron432 opened this issue Dec 5, 2023 · 1 comment
Open

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

tetron432 opened this issue Dec 5, 2023 · 1 comment

Comments

@tetron432
Copy link

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?

@juanigaray
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants