Hi Manuel,

I use the following in my stylesheet for code-examples in non-fixed font:
CODE {
  font-family: courier, monospace;
  font-size: 10pt;
}

And the following in the html page to make it work with old and new browsers:
<PRE><CODE>bla die bla
more bla
another bla
</CODE></PRE>

Works perfect with all browsers. In browsers that do not know about styles, 
the code example shows up in non-fixed font in the font-size of the rest of 
the page (default for my pages is 12pt). In browsers that support styles, it 
shows up in a non-fixed font with font-size 10 (a little bit smaller then the 
rest of the page).

I have deliberately choosen a smaller font for the non-proportional 
characters because in general, non-proportional fonts are wider (the 
non-proportional i is much wider then the proportional i). Choosing a smaller 
font compensates for this and makes the overal visual presentation much 
better.

I hope this helps.



Kind regards,
Alex Wulms



-- 
Visit The MSX Plaza (http://www.inter.nl.net/users/A.P.Wulms) for info on
XelaSoft, Merlasoft, Quadrivium, SD-Snatcher on fMSX, the MSX Hardware list,
XSA Disk images, documentation, Japanese MSX news from Ikeda and lots more.



--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html

Reply via email to