Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
The lettering or font size prints smaller than the selected size o | Microsoft Word Help | |||
Save As HTML - where is option to save pictures to GIF od JPG format? | Microsoft Word Help | |||
How to use Word 02 to save a SEC filing as an HTML for EDGAR? | Microsoft Word Help | |||
HTML in WORD 2000 - Problem with Font Sizes | Microsoft Word Help | |||
Word 2003 - Save AS .HTML format does not save to one file | Microsoft Word Help |