• Ironfacebuster@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 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
    }