On Jan 6, 2010, at 11:43 AM, Robert O'Callahan wrote: > On Thu, Jan 7, 2010 at 5:39 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote: > >>> Here is a way to use a mono-spaced font for numbers: > >>> > >>> p::text("\d+") { font-family: "Courier New", Courier, monospace; } > > This one is indeed a pure styling issue. It could perhaps be > addressed another way, though, by having something targetting > number-styling directly, either as a specialized selector or as a > number-style property or similar. > > You could do this with proposed extensions to font-variant, and a suitable font, using "font-variant-numeric: tabular-nums". Can it also make those same numbers green, except for the ones with a minus sign in front of them, which would be red?
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC