5 ms·
I agree with your second point, but the code is monospaced for me.
by AndreasFrom 13y ago
I agree with your second point, but the code is monospaced for me.
- ahoge 13y agoIt's only monospaced if your machine has one or more of these fonts installed: Monaco,"Bitstream Vera Sans Mono","Lucida Console",Terminal Font stacks should always end with a generic font family keyword. In this case: "monospace".
- sergeykish 13y agoFont is already "monospace" in your browser by default rules. It's reset that breaks things, see stylesheet.css:5 # unrelewant omited pre { font: inherit; }
- ahoge 13y agoHad the same argument about a year ago. No, once you override it, it's gone. The value of the font-family property is a single list, not a list of lists. Example: http://i.imgur.com/8TLBd.png http://i.imgur.com/8TLBd.png It doesn't work with inheritance and it also won't work if the very same selector is used. E.g. if you add: .comment{font-family:foo} to the current stylesheet, you'll get Times New Roman (or whatever your browser's default font is.) Hence this line: http://www.w3.org/TR/CSS2/fonts.html#font-family-prop http://www.w3.org/TR/CSS2/fonts.html#font-family-prop "Style sheet designers are encouraged to offer a generic font family as a last alternative."