3 ms·
Joke’s on you: my browser window isn’t centered.
by nkrisc 2mo ago
Joke’s on you: my browser window isn’t centered.
- sebastiennight 2mo agoAh but see, exploiting a Chromium API has let us know you've got this second screen on the side, so we're centering the div on your overall work space. PS: if you switch from the touchpad to a wireless mouse, we'll move the div accordingly
- nkrisc 2mo ago1. Neither of my screen is to the side of the other. 2. The demo doesn't even work, the div stays centered in the viewport, not the program window when I open a side bar (Firefox). 3. Rarely does my browser even cover the center of my workspace, so it would be impossible to center anything in the center of my view without forcibly moving the program window from within the website.
- sebastiennight 2mo agoChallenge accepted: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_moveto https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_... https://developer.mozilla.org/en-US/docs/Web/API/Window/moveTo https://developer.mozilla.org/en-US/docs/Web/API/Window/move...