176
submitted 2 days ago* (last edited 2 days ago) by vatlark@lemmy.world to c/til@lemmy.ca

The theorem has been expressed colloquially as "you can't comb a hairy ball flat without creating a cowlick" or "you can't comb the hair on a coconut".

you are viewing a single comment's thread
view the rest of the comments
[-] sga@lemmings.world 0 points 2 days ago

Even in my original comment i said there are non js ways. But what i primarly meant here is, there are differnt "ideas" of implementing a mobile site, some just change element sizes, and make them vertical viewing friendly, but others do change quite a lot, for example, remove most clickable items from the header-bar or title bar, and move them to a kebab/hamburger menu. And I know even this particular example can be done in pure css, but I still feel my statement is not simply wrong.

Also I am not a front end dev, so I am sorry if I get stuff wrong.

[-] FooBarrington@lemmy.world 2 points 2 days ago

No, you're right. The important part I wanted to highlight is that the usual way is CSS, not JS. There are a bunch of websites that use JS for this purpose, and probably also many CMSs etc., but doing it using CSS is far more common.

this post was submitted on 19 Apr 2025
176 points (98.9% liked)

Today I Learned (TIL)

7306 readers
12 users here now

You learn something new every day; what did you learn today?

/c/til is a community for any true knowledge that you would like to share, regardless of topic or of source.

Share your knowledge and experience!

Rules

founded 2 years ago
MODERATORS