Earlier quoted context omitted.
The author should not intend that, and if they do, my browser should do its best to put a stop to it.
I'm fairly certain you just replied to the author
We finally learned to center a div, then browsers added sidebars
51–60 of 172 posts
Re: We finally learned to center a div, then browsers added sidebars
#52The net result of what this site is doing seems to result in one of two effects when I open the sidebar, randomly: 1) the sidebar covers the content, while the content has blank space to the right, or 2) the content moves off the right edge of the screen, leaving a large blank space to its left. Both of these are wrong. If I have a sidebar open, the site is now narrower , stop trying to be clever. My immediate reacti…
Agreed, both outcomes are bugs and neither is intended. The idea is simply that, content the site author intended to be horizontally centered stays literally centered on my screen when browser UI changes the viewport.
Re: We finally learned to center a div, then browsers added sidebars
#53Earlier quoted context omitted.
Wait, I have to hold my phone how in order to see the div? ಠ_ಠ
I assume you have to be facing the server...
While the Silicon Valley is merely a figurative Mecca for all things tech, Apple could require people to be facing Cupertino if you want to watch a WWDC stream :D
Re: We finally learned to center a div, then browsers added sidebars
#54You’ve effectively created a slide over sidebar. It’s an interesting hack to get there but IMO “should” properly be the domain of the browser.
But yay, it's centered relative to the window now! God forbid the user tiles their windows, because it breaks the aesthetic the website author intended.
Re: We finally learned to center a div, then browsers added sidebars
#55Earlier quoted context omitted.
My guess is that you’re remembering this demo: https://xcancel.com/_nonfigurativ_/status/172732259457002734...
Yep, that's right.
Re: We finally learned to center a div, then browsers added sidebars
#56I'm 55 years old. My eyes are not what they used to be and neither are my glasses. I also own a copy of "Usage and Abusage" but I'll pass on that. Click on story link. My laptop renders a page - OK its black text on a white background (thank you but I doubt its a deliberate boon) ... ... why on earth is the offering a "page" ie emulating a printed page? In portrait! I'll accept that most people are not fixated about…
Some more on this below:
Optimal Line Length in Reading — A Literature Review (https://journals.uc.edu/index.php/vl/article/view/5765)
Practical Typography — Line Length (https://practicaltypography.com/line-length.html)
Re: We finally learned to center a div, then browsers added sidebars
#57I've tried a few browsers with vertical tabs, and my brain keeps seeing them as part of the page itself. It's a very distracting and uncomfortable experience.
Re: We finally learned to center a div, then browsers added sidebars
#58Re: We finally learned to center a div, then browsers added sidebars
#59Earlier quoted context omitted.
Wait until they realize that on mobile they can use accelerometer data to keep the element in the same position in space across translations of the device.
So the content falls down at 10 m/s^2 unless you're falling alongside it.
Re: We finally learned to center a div, then browsers added sidebars
#60This might be some kind of a weird requirement for a piece of art, but I would literally never expect a website to center a div according to the browser window instead of the viewport. It just looks wrong and feels wrong.
Same. Thank heavens the website doesn't know the position of the browser's window in respect to the screen it's on.
[0]: demo: https://mdn.github.io/dom-examples/screenleft-screentop/