Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
OhioTech OhioTech is offline
external usenet poster
 
Posts: 12
Default Word - Save as HTML - font-size:10.0pt

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?


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Robert M. Franz (RMF) Robert M. Franz (RMF) is offline
external usenet poster
 
Posts: 1,741
Default Word - Save as HTML - font-size:10.0pt

Hi Ohio

OhioTech wrote:
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
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
OhioTech OhioTech is offline
external usenet poster
 
Posts: 12
Default Word - Save as HTML - font-size:10.0pt

"Robert M. Franz (RMF)" wrote:

Hi Ohio

OhioTech wrote:
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
--
/"\ 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.


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Robert M. Franz (RMF) Robert M. Franz (RMF) is offline
external usenet poster
 
Posts: 1,741
Default Word - Save as HTML - font-size:10.0pt

OhioTech wrote:
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
--
/"\ ASCII Ribbon Campaign | MS
\ / | MVP
X Against HTML | for
/ \ in e-mail & news | Word
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The lettering or font size prints smaller than the selected size o kalabjim Microsoft Word Help 1 October 19th 06 05:01 AM
Save As HTML - where is option to save pictures to GIF od JPG format? Zdenek Mares Microsoft Word Help 2 December 6th 05 02:18 PM
How to use Word 02 to save a SEC filing as an HTML for EDGAR? Wildal Microsoft Word Help 0 May 2nd 05 08:45 PM
HTML in WORD 2000 - Problem with Font Sizes Doug Microsoft Word Help 0 March 2nd 05 01:19 AM
Word 2003 - Save AS .HTML format does not save to one file Pamhall Microsoft Word Help 1 January 31st 05 04:54 PM


All times are GMT +1. The time now is 07:12 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"