News for hackers. Stuff that matters.
Re:We finally learned to center a div, then browsers added s... by fluoridation on Tuesday August 04, 2026 @07:33PM (#49176722)
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.
Re:We finally learned to center a div, then browsers added s... by jagged-chisel on Tuesday August 04, 2026 @07:41PM (#49176769)
Wait, I have to hold my phone how in order to see the div? ಠ_ಠ
Re:We finally learned to center a div, then browsers added s... by giancarlostoro on Tuesday August 04, 2026 @08:12PM (#49176995)
The same way Steve Jobs said to hold the iPhone.
Re:We finally learned to center a div, then browsers added s... by blamarvt on Tuesday August 04, 2026 @07:48PM (#49176811)
I assume you have to be facing the server...
Re:We finally learned to center a div, then browsers added s... by alterom on Tuesday August 04, 2026 @09:59PM (#49177714)
I mean, this could have applications, if you need to be facing a certain direction to read the content.

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 s... by Izkata on Tuesday August 04, 2026 @10:37PM (#49177932)
Aww, looks like the magnetometer web API was abandoned: https://developer.mozilla.org/en-US/docs/Web/API/Magnetomete...
Re:We finally learned to center a div, then browsers added s... by dotancohen on Wednesday August 05, 2026 @05:25AM (#49180468)
This might actually be useful as some people do their maintenance facing either Jerusalem or Mecca.
Re:We finally learned to center a div, then browsers added s... by dpkirchner on Tuesday August 04, 2026 @08:44PM (#49177227)
It's easy, you just need to hold your phone such that your eyes are pointed directly at the ads as they scroll up and down the screen. Thank you for consuming content.
Re:We finally learned to center a div, then browsers added s... by 1bpp on Tuesday August 04, 2026 @09:13PM (#49177422)
position: hyperfixed;
Re:We finally learned to center a div, then browsers added s... by p1mrx on Tuesday August 04, 2026 @09:25PM (#49177502)
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 s... by fluoridation on Tuesday August 04, 2026 @10:25PM (#49177872)
But the problem is, you can never quite catch up to it without a rocket.
Re:We finally learned to center a div, then browsers added s... by valleyer on Tuesday August 04, 2026 @11:41PM (#49178358)
No, you can also take your clothes off and throw them upward with sufficient force.
Re:We finally learned to center a div, then browsers added s... by dotancohen on Wednesday August 05, 2026 @05:33AM (#49180516)
I think that I saw somebody take your advice about five hours ago at the beach.
Re:We finally learned to center a div, then browsers added s... by happymellon on Wednesday August 05, 2026 @01:09AM (#49178783)
And running to counter earth rotation...
Re:We finally learned to center a div, then browsers added s... by Izkata on Tuesday August 04, 2026 @10:32PM (#49177912)
Translations? Not far enough, got to include rotations: https://developer.mozilla.org/en-US/docs/Web/API/Device_orie...

(And yes, CSS can rotate around all three axes, so you could make a div that resists rotating your device in addition to resisting translation...)

Re:We finally learned to center a div, then browsers added s... by LocalH on Tuesday August 04, 2026 @11:35PM (#49178322)
Stop giving them ideas! :(
Re:We finally learned to center a div, then browsers added s... by tzs on Wednesday August 05, 2026 @06:34PM (#49189985)
I've actually kind of wanted something like that.

Sometimes there is no size setting that will get the text lines on a page to fit horizontally without making the text too small to read. Making it large enough to read means lots of left and right scrolling which is annoying.

A mode where moving the phone sideways scrolls the text at a matching rate so that the experience is similar to reading a page with a magnifying glass might be handy.

Re:We finally learned to center a div, then browsers added s... by fluoridation on Wednesday August 05, 2026 @07:35PM (#49190517)
Most people would rather lines to be broken up and wrapped around than to have to walk around the room to read. Do you often find yourself reading photographs of stone tables or something?
Re:We finally learned to center a div, then browsers added s... by tzs on Wednesday August 05, 2026 @11:40PM (#49192158)
Why would you have to walk? You would be moving the phone back and forth by less than the width of a page.

Wrapping is fine on some material, but when there are tables it can be very annoying.