Hi, all:

My client sometimes includes snippets of code in run-on paragraphs, so I use
an inline style to distinguish the snippets from the rest of the text. The
paragraphs use a variable-width font (Palatino Linotype), but the client
wants a monospaced font (Courier New) used for the snippets.

*Example:* At the command line, type Stop Server.

I'm using CSS to produce both online and printed versions of the content. In
the online output, the running text and the snippets appear to sit on the
same baseline, but in printed output (PDF), the monospaced font sits below
the rest of the text, as if it's subscripted.

I have tried using various combinations of font-size, line-height, and
vertical-align properties to make all of the text stay on the same baseline,
and I can't make the snippet text budge. The *super *property under
vertical-align came close to fixing the problem, but even then, the inline
snippet appears a little higher than it should.

For the printed version, I am using points for the font size. I have tried
using points, ems, and no specified unit for the line height. I have also
tried every one of the vertical align properties.

Any ideas?

Eddie

[email protected]
http://www.vanarsdall-infodesign.com
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to