home.social

#cssunits — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cssunits, aggregated by home.social.

fetched live
  1. If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.

    Live test on @codepen codepen.io/thebabydino/pen/Exz

    #CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev

  2. If you want a fixed aspect-ratio element that always touches either the horizontal or vertical edges of its flexible size and aspect ratio wrapper *which does not coincide with the viewport*, you can make the wrapper a container and use container query units.

    Live test on @codepen codepen.io/thebabydino/pen/Exz

    #CSS #cssLayout #layout #container #containerQueries #containerQuery #cssUnits #code #coding #frontend #web #dev #webDev

  3. As exciting (and useful) all the new #CSS units are, it looks like things working as expected with them isn't a thing for now.

    Safari has problems with `lh` bugs.webkit.org/show_bug.cgi?i and doesn't seem to support `cap` (at least from what I've tested in Epiphany).

    #bug #cssBug #Safari #SafariBug #code #coding #cssUnits #frontend #webDev #webDevelopment

  4. As exciting (and useful) all the new #CSS units are, it looks like things working as expected with them isn't a thing for now.

    Safari has problems with `lh` bugs.webkit.org/show_bug.cgi?i and doesn't seem to support `cap` (at least from what I've tested in Epiphany).

    #bug #cssBug #Safari #SafariBug #code #coding #cssUnits #frontend #webDev #webDevelopment

  5. #Development #Approaches
    Why you should use px units for spacing techniques · The drawbacks of using relative units for margin, padding, and the like ilo.im/15fman

    _____
    #WebDev #WebDesign #ResponsiveDesign #Frontend #CSS #CssUnits

  6. #Development #Approaches
    Why you should use px units for spacing techniques · The drawbacks of using relative units for margin, padding, and the like ilo.im/15fman

    _____
    #WebDev #WebDesign #ResponsiveDesign #Frontend #CSS #CssUnits