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?

  • lambalicious
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 day ago

    EDIT: assuming here that “just make the page simple” is not an option. If the page layout is advanced enough that lacking CSS is a serious instance, you’ll need two versions (or a version and an “export”) anyway.

    An option that I strongly don’t recommend but it is doable, is to make the page with tables, then format the tables with display:flex or display:grid and the adequate related properties for the “modernized” view for browsers that support CSS.

    Then again, nothing really prevents you from doing things the better way: making two pages and linking from one to the ther with a link like

    Click here for a simplified / tabular version

    It’s even easier to maintain, in particular if you have a good workflow / build system for composing either page from the data you want to show.