118

The best case is O(n), and the worst case is that someone checks why.

https://explainxkcd.com/3026/

you are viewing a single comment's thread
view the rest of the comments
[-] thevoidzero@lemmy.world 1 points 14 hours ago

Can you do it without loading a bunch of heavy scripts? Making a html responsive is always something challenging I face since I'm not a web developer. I just make htmls when I have to share some data visualization. And I couldn't find how to make it responsive without using bootstrap, sth-ui, etc and using their classes and scripts.

I'd love if vanilla CSS just had if statement like thing for "portrait/landscape" or ">threshold/not" for contents width and fonts.

[-] Ironfacebuster@lemmy.world 4 points 13 hours ago

It actually does, there's "@media" which lets you query stuff about the browser like if it's touchscreen vs mouse (and maximum/minimum width/height)

Example:

@media screen and (max-width: 1300px) {
    do stuff for screens less than 1300px
}
this post was submitted on 19 Dec 2024
118 points (100.0% liked)

xkcd

8968 readers
155 users here now

A community for a webcomic of romance, sarcasm, math, and language.

founded 2 years ago
MODERATORS