• Welcome to PlanetSquires Forums.
 

Forum code-font size

Started by Haakon Birkeland, November 10, 2009, 01:44:26 PM

Previous topic - Next topic

Haakon Birkeland

It might be my FireFox, but I find the font size displayed in code-tags are way small and crippled, making it very hard to read to read â€" even for a "young fart".

Does the forum have an option to increase the font-size?
Haakon 8o)

José Roca

No. The only way that I know is to modify the template. I did that in my forum.

Paul Squires

Can you remember which file in the template you modified? (and as a bonus, what font/size you decided to use).
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca

Style.css


/* A code block - maybe even PHP ;). */
.code
{
   font-family: "courier new", "times new roman", monospace;
   font-size: 100%;
   line-height: 1.3em;
   margin: 1px auto 1px auto;
   padding: 1px;
   width: 99%;
   /* 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;
}


Paul Squires

Thanks Jose,

I worked your styles into the existing styles and came up with the following (which seems to create code listings like on your site):


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

Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Haakon Birkeland

Now, that's fully readable!

Seems even larger than the main forum text, but I guess some find that just jolly good. Now we only lack syntax highlighting. 8o)
Haakon 8o)

Rolf Brandt

That suits my eyes much more!
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

I updated to SMF 2 RC2 last night and the style of course got reset. I went back into the style.css and changed the code to match what I had before. It does not seem to have worked. I'll keep checking to see what I did wrong because I was liking the style yesterday that matched Jose's site.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Haakon Birkeland

I noticed the font was crippled again when sitting in the Screen Resolution thread, but I kept it to myself in case it was my browser acting up ...
Haakon 8o)

Paul Squires

Yeah, it also screwed up my "Member Count" which I was able to fix.

Probably should have left well enough alone and waited to upgrade. Looks like everything is working okay now except for that Code block formatting. I'll get it working eventually.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Haakon Birkeland

Member count ...
Yes, it has flashed my mind a couple of times that there is less stats visible than before you relaunched the forums.
Haakon 8o)