Topic on Project:Support desk/Flow

[RESOLVED] How to change my Wiki font size?

5
Seonlive (talkcontribs)

Hi, My Wiki is 繁體中文, Need font size 14, i don't know how to change, can help me? :(

88.130.119.59 (talkcontribs)

Hi!

That is easy: I assume you use the Vector skin, right? Then on your wiki, go to the wiki page MediaWiki:Vector.css and add something like this:

/* Bring the text to 14px */
.mw-content-text {
  font-size: 0.875em;
}

However, note that this might also change the size of other things inside the content. The original value is 0.8em, which comes down to 12.8px.

Seonlive (talkcontribs)
88.130.119.59 (talkcontribs)

I've checked this again and in fact it seems like the font-size is defined by "bodyContent" in your wiki. So this rule should do:

/* Bring the text to 14px */
#mw-content-text {
  font-size: 0.875em;
}

Note that I fixed a wrong sign in thiscode, which I had there by accident. :-(

/* Bring the text to 14px */
#bodyContent {
  font-size: 0.875em;
}

Use one of the two, but not both, as I guess their changes add to each other.

Seonlive (talkcontribs)

he work!

Thanks you very much!

Have a Good Day:)

Reply to "[RESOLVED] How to change my Wiki font size?"