Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Mal5950 - toukokuu 01, 2006, 04:34:33 IP

Otsikko: Coded Font Size
Kirjoitti: Mal5950 - toukokuu 01, 2006, 04:34:33 IP
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.
Otsikko: Re: Coded Font Size
Kirjoitti: JshLnsctt - toukokuu 01, 2006, 04:42:05 IP
You mean when text is entered into a quote or code box?
Otsikko: Re: Coded Font Size
Kirjoitti: Mal5950 - toukokuu 02, 2006, 02:40:03 IP
Into a code box:

Like this - The font size is much too small and difficult to read.
Otsikko: Re: Coded Font Size
Kirjoitti: L.G.S - toukokuu 02, 2006, 03:37:17 IP
I think the code size can be changed in the CSS
Otsikko: Re: Coded Font Size
Kirjoitti: Anakin_holland - toukokuu 02, 2006, 04:18:52 IP
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