Login
You're viewing the ruby.social public feed.
  • Nov 28, 2026, 11:12 AM

    TIL

    If you have columns with dates or times, you can make digits monospaced without switching to a monospace font.

    font-variant-numeric: tabular-nums;

    This uses the OpenType tnum (tabular numerals) feature, supported by many popular fonts, including Inter, Roboto, Open Sans and Lato.

    Oh, how I'm going to miss those fluttering date and file size columns. So glad I've finally found a remedy, because switching to a truly mono-spaced font only for some columns didn’t look good.

    #CSS #WebDev

    Before (left) and after (right): The dates are now aligned.
    💬 0🔄 0⭐ 0