Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Coded Font Size

Aloittaja Mal5950, toukokuu 01, 2006, 04:34:33 IP

« edellinen - seuraava »

Mal5950

Hi

My forum members complain that when they use the CODE function, the text within the coded area of their message becomes far too small to read, is there a way of changing this other than changing the text size in their browsers.

Many thanks in advance.

JshLnsctt

You mean when text is entered into a quote or code box?

Mal5950

Into a code box:

Like this - The font size is much too small and difficult to read.

L.G.S

I think the code size can be changed in the CSS
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Anakin_holland

Yep,

in the file Themes/<Your theme>/style.css you can find the following:

/* A code block - maybe even PHP ;). */
.code
{
        color: #000000;
        background-color: #dddddd;
        font-family: "courier new", "times new roman", monospace;
        font-size: x-small;
        line-height: 1.3em;
        /* Put a nice border around it. */
        border: 1px solid #000000;
        margin: 1px auto 1px auto;
        padding: 1px;
        width: 90%;
        /* Don't wrap its contents, and show scrollbars. */
        white-space: nowrap;
        overflow: auto;
        /* Stop after about 24 lines, and just show a scrollbar. */
        max-height: 24em;
}


You may want to change

font-size: x-small;

to "small' maybe?

Greetz!

Anakin

Advertisement: