Topic on Project:Support desk

Code Font Size Small!

5
188.222.10.20 (talkcontribs)

Hi there!

Firstly, I apologize in a advance as this is the first time I have started using MediaWiki and have only had 2 days to get to grips with it. This is probably a massively easy issue. Thank you for any help you can offer:

When I use:

<code><pre>

The font size comes up as pretty small unlike the code above which is a reasonable size.

This is how it appears on my site: http://medimonics.org/wiki/index.php?title=Main_Page

I tried using FireBug and various .css files but can't seem to get it.

Thanks in advance.

I am using the most recent version of Media Wiki (1.16.2)

MaxSem (talkcontribs)
188.222.10.20 (talkcontribs)

Ahhh...Interesting. Sorry, I tried searching for it, but couldn't find it. Thanks for letting me know nonetheless.

67.137.99.123 (talkcontribs)

I added the following to my Common.css to help with this problem.

/* Fix so <tt>, <code>, and <pre> display in a suitable size in firefox, chrome, etc */
tt, code, pre {
    font-family: monospace, sans-serif;
}
76.19.64.69 (talkcontribs)

Sorry to post so late ...

Since the problem is the size, something like this works just fine in /skins/common/shared.css:

/* Fix so <tt>, <code>, and <pre> display in a suitable size in firefox, chrome, etc */
tt, code, pre {
    font-size: 1.25em;
}

This results in a computed size of ~12px and will additionally fix the problem if you're using Extension:SyntaxHighlight_GeSHi.

Reply to "Code Font Size Small!"