From: Swifty on 30 Mar 2010 05:41 If the text inside: <SPAN SYLE="white-space:pre;font-family:monospace"> .... displays in font Courier New whereas my browser is set to display monospace text in font Andale Mono, then is that a problem with my CSS, or my browser? Text inside <PRE> does use Andale Mono. -- Steve Swift http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk
From: dorayme on 30 Mar 2010 06:06 In article <vhh3r5p6d4p90psnd74c3105kt9mq6271v(a)4ax.com>, Swifty <steve.j.swift(a)gmail.com> wrote: > If the text inside: > <SPAN SYLE="white-space:pre;font-family:monospace"> > > ... displays in font Courier New whereas my browser is set to display > monospace text in font Andale Mono, then is that a problem with my > CSS, or my browser? > Should be "style" not "syle". -- dorayme
From: Thomas 'PointedEars' Lahn on 30 Mar 2010 06:11 Swifty wrote: > If the text inside: > <SPAN SYLE="white-space:pre;font-family:monospace"> > > ... displays in font Courier New whereas my browser is set to display > monospace text in font Andale Mono, then is that a problem with my > CSS, or my browser? Yes. <http://validator.w3.org/> <http://www.catb.org/~esr/faqs/smart-questions.html> PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee
From: Andreas Prilop on 30 Mar 2010 10:21 On Tue, 30 Mar 2010, Swifty wrote: > <SPAN SYLE="white-space:pre;font-family:monospace"> > ... displays in font Courier New whereas my browser is set to display > monospace text in font Andale Mono, Why don't you tell us which browser is "my browser"? For Internet Explorer: serif = Times New Roman sans-serif = Arial monospace = Courier New http://www.user.uni-hannover.de/nhtcapri/temp/serif.html -- In memoriam Alan J. Flavell http://www.alanflavell.org.uk/charset/
From: Thomas 'PointedEars' Lahn on 30 Mar 2010 12:32 Andreas Prilop wrote: > Swifty wrote: >> <SPAN SYLE="white-space:pre;font-family:monospace"> >> ... displays in font Courier New whereas my browser is set to display >> monospace text in font Andale Mono, > > Why don't you tell us which browser is "my browser"? > > For Internet Explorer: *Your* Internet Explorer maybe. Mine: > serif = Times New Roman > sans-serif = Arial Tahoma > monospace = Courier New Bitstream Vera Sans Mono(space?) > http://www.user.uni-hannover.de/nhtcapri/temp/serif.html That does not mean anything. Internet Explorer allows the user to select at least the "Web page font" (proportional font) and the "Plain text font" (fixed-width font). A real way to determine the used font-family in MSHTML is to retrieve the currentStyle.fontFamily property value of the corresponding DOM object when there are no document stylesheets present, e.g. window.alert(document.body.currentStyle.fontFamily); PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
|
Next
|
Last
Pages: 1 2 3 4 Prev: Style sheet question: difference between div#score vs. #score Next: Print stylesheet |