Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Font Size of Code Snippets

by Arguile (Hermit)
on Sep 08, 2002 at 19:05 UTC ( #196074=note: print w/replies, xml ) Need Help??


in reply to Font Size of Code Snippets

This is common on any sites that use monotype font elements (pre/tt) without resizing. It's due partially to user agent defaults for monotype fonts and partially to the fonts x-height.

In your user CSS (under user settings) add something along the lines of:

code, pre, tt { font: 1.2em/1.5em "Courier New", Courier, monotype; }

You can play with the size/line-height values to suit your particular preference. For more information on CSS font control (and other CSS properties) visit W3C CSS2 - Fonts.

Note: If you're viewing PM on multiple platforms and are having trouble with your CSS font sizing rules. Probably due to the “quirks” mode (lack of) inheritance (caused by the absence of a URL in the !DOCTYPE) and the IE default font size bug (it uses “small” as default when it should be “medium”) you may want to use absolute pixel font sizes.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://196074]
help
Chatterbox?
[marinersk]: I saw that you could post it on the Personal Nodelet, but you have to provide the content also. No way to auto-populate it. Not that this would solve my distraction problem...
[LanX]: there are template variables to "Auto-populate" it
[marinersk]: Yeah, someday I might become interested enough to poke around PerlMonks more internally. Most of the fancy stuff is way down on my to do list.
[LanX]: Yeah ...
[LanX]: no variable for votes_left
[marinersk]: Ah, well. I will continue to deal with it, as I have. Thanks for poking about, though.
[LanX]: you are welcome! :)
[marinersk]: LanX, your link to Darmstadt on your Home Node is broken.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-05-29 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?