Hacker News new | ask | show | jobs
by marginalia_nu 1275 days ago
That's solvable with vw/vx-units in CSS.

I think the range in aspect ratios is the bigger problem. It's hard to get around without resulting in a nasty reactive design where everything keeps shuffling around as you resize the window.

2 comments

Sure, very solvable nowadays with media queries, flex box, grid, screen width and height units, etc. These features didn't exist in 90s CSS.

But even though the tools exist today, it is still challenging to do well. Agreed that aspect ratio variability is a bigger problem (we can no longer count on 4:3 as the standard).

I have a 4K monitor on my desk with 100% scaling, and one of the things that always gives me a chuckle is maximizing a browser window.

Most websites just stop getting wider after a certain point, which is fine because you wouldn't want to read a line of text that long anyway. It's usually a column in the middle maybe 1/3rd of the screen.

The typical thing was a fixed width container table wrapped with <CENTER> tags. Then you set textalign on that table. Voilá your table fit all your content with a fixed size/aspect but would float center on the page of someone with larger than 800x600 or whatever minimum you designed for.