changing font style

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

After adding a <pre> to a page I
noticed it changed the font style, what is
determining the font style used within the <pre>

 changing font style

Deciding to do something for the good of humanity, "T.J."

Quoted text here. Click to load it

a) The browser's default rendering of <pre>. Since it is for
preformatted text, most (all?) graphical browsers use a monospaced font
for <pre>.

b) Your stylesheet.

c) User stylesheet.

d) URL?

Mark Parnell
My Usenet is improved; yours could be too:

 changing font style

__/ [ Mark Parnell ] on Monday 24 April 2006 02:04 \__

Quoted text here. Click to load it

Yes, and you can find it listed in your font settings. There is usually a
special field for this, under character type (e.g. Western).

Quoted text here. Click to load it

Indeed. You can change it too if you like. I use:

pre {
        color: #444;
        background: url(/IMG/pre_bg.gif);
        border: 5px double #fff;

pre:first-letter {
        font-family : Times New Roman, serif;
        color: #000000;
        font-variant: small-caps;
        font-size : 200%;

Quoted text here. Click to load it

If overridden.

Roy S. Schestowitz      |    $> apt-get -not windows  |    SuSE Linux          PGP-Key: 0x74572E8E
  4:35am  up 1 day 13:32,  12 users,  load average: 0.42, 0.56, 0.51 - Open Source knowledge engine project

 changing font style

Quoted text here. Click to load it

I assumed I could over-ride it using my
stylesheet, but just wondered what the default
was if nothing is stipulated.
URL is,
It is just a test page to find the most search engine
friendly way of writing,


Site Timeline