News for hackers. Stuff that matters.
Re:Just because I have a vertical screen doesn’t mean I’m on... by jefftk on Wednesday February 03, 2021 @07:59AM (#26013211)
CSS pixels are good for layout, not just sizes and positions, because a pixel (in a browser) now represents an apparent size. That is, if the user has a large device far from their face, or a small device close to their face, a pixel represents a similar portion of their vision. If they want things larger, they can adjust the scaling so a pixel represents a larger apparent size, or the reverse.
Re:Just because I have a vertical screen doesn’t mean I’m on... by badsectoracula on Thursday February 04, 2021 @10:49PM (#26032882)
This is never true in practice though and what you describe is just about sizes and position, you can't change the layout with CSS pixels - you need resolution media queries for that.