this post was submitted on 17 Jun 2025
5 points (100.0% liked)

HTML

385 readers
3 users here now

founded 2 years ago
MODERATORS
 

My site is currently pretty simple, but it still uses enough CSS that some parts of it look really bad in a browser like Links2 that doesn't support CSS. Most of what i'm doing with CSS can be done with plain HTML, it just doesn't look as good.

Is there a way to make a page try to load normally with CSS and whatnot, and then only load a simpler version with everything done in tables if the normal version can't load? Is my best option here to make normal and simple versions of every page?

you are viewing a single comment's thread
view the rest of the comments
[–] brian@programming.dev 1 points 2 months ago

you could look at the user agents and have 2 versions, one for normal browsers and one for Links and similar.

you could also probably do something terrible with having an initial page that supports both, adding a cookie and detecting if the css file gets downloaded, then after that point serving them the css styled if they did or the table styled if not. you could even reload the page with js if it's enabled and you detect the css was downloaded. this hinges on Links and similar not even downloading the css, which I'm not sure if is true.