Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: <pre> changing font style

  • Subject: Re: <pre> changing font style
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Mon, 24 Apr 2006 04:43:11 +0100
  • Newsgroups: alt.www.webmaster
  • Organization: schestowitz.com / MCC / Manchester University
  • References: <gpidnRzLwbxUv9HZRVnyrg@bt.com> <16fder3q5awm9$.dlg@markparnell.com.au>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ Mark Parnell ] on Monday 24 April 2006 02:04 \__

> Deciding to do something for the good of humanity, "T.J."
> <no1@xxxxxxxxxxxx> declared in alt.www.webmaster:
> 
>> what is
>> determining the font style used within the <pre>
>> tags?
> 
> a) The browser's default rendering of <pre>. Since it is for
> preformatted text, most (all?) graphical browsers use a monospaced font
> for <pre>.


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).


> b) Your stylesheet.


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%;
}
 

> c) User stylesheet.


If overridden.


> d) URL?

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

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index