Word - Save as HTML - font-size:10.0pt

G

Guest

Word 2002, XP home edition.

When I save a Word doc to HTML filtered, it generates CSS in each paragraph:
<span style='font-size:10.pt;>
which seems to be an absolute value.

When the user (IE browser) does View/Change text size, nothing happens.

If I remove the "span style='font-size:10.pt", the View/Change text size
works OK.

Isn't there a better way for Word?
(a) don't specify an absolute value
(b) for majority of content, put the specs in the <STYLE> element instead of
repeating the same info in STYLE attributes.

Do newer Word versions act any better?
 
R

Robert M. Franz (RMF)

Hi Ohio
Word 2002, XP home edition.

When I save a Word doc to HTML filtered, it generates CSS in each paragraph:
<span style='font-size:10.pt;>
which seems to be an absolute value.

When the user (IE browser) does View/Change text size, nothing happens.

If I remove the "span style='font-size:10.pt", the View/Change text size
works OK.

I only have Word 2000 ready here at the moment. What I would test in
your seat: try if Word saves something different when your text size is
determined through it's style and not (as I suppose it is here) through
direct formatting.

..2cents
Robert
 
G

Guest

Robert M. Franz (RMF) said:
Hi Ohio


I only have Word 2000 ready here at the moment. What I would test in
your seat: try if Word saves something different when your text size is
determined through it's style and not (as I suppose it is here) through
direct formatting.

..2cents
Robert
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word



I'm not experienced with Word styles. If I do Format/ Reveal formatting, it
shows 10pt (default).

If the HTML mentions an absolute font size (as Word-to-html does) user can
not change Text size.

If the HTML does not mention a specific font size, I think 10pt default is
used. User can dynamically change Text Size (Internet Explorer - View/Change
Text size).

If I change the HTML absolute "10.0pt" to relative "1.0em", user can change
Text size.

If I can do this by editing the HTML (providing flexibility for the user),
why can't Word do it?

When Word encounters smaller or larger font sizes (than 10pt), it should
then use appropriate "em" values for CSS data.
 
R

Robert M. Franz (RMF)

OhioTech said:
When I save a Word doc to HTML filtered, it generates CSS in each paragraph:
<span style='font-size:10.pt;>
which seems to be an absolute value.
[..]
I only have Word 2000 ready here at the moment. What I would test in
your seat: try if Word saves something different when your text size is
determined through it's style and not (as I suppose it is here) through
direct formatting.
[..]
I'm not experienced with Word styles. If I do Format/ Reveal formatting, it
shows 10pt (default).

That sounds a lot like direct formatting. In that case, I would expect
Word indeed to insert the point size directly into the HTML code of the
paragraph itself.

Try the following: create a paragraph style exactly as you want this
paragraph to look like, and assign the style to it.

In unfiltered HTML, there will still be a reference to the 10 pt font
size, but it is in the style definition (only once in the file, on the
top). Not sure what Word 2002 filtered will look like, but in any case
you only need to correct it manually once in the file and not all over
.... :)

HTH
Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top