Note: The Rootsweb Mailing Lists will be shut down on April 6, 2023. (More info)
RootsWeb.com Mailing Lists
Total: 1/1
    1. Re: [FreeHelp] Stripping out MSO tags
    2. Ralph Taylor via
    3. Judy, The codes you're referring to were inserted when published from a Microsoft Word document to HTML. They usually resulted in inefficient, bloated code; the page file is appreciably bigger than it needs to be and harder to edit or style. What's particularly infuriating is that they are a combination of HTML external CSS and inline styling. Examples, * class="MSONormal") has no effect on your site unless you define .MSONormal (etc.) in your own external stylesheet. * <td width="100" style="width:75pt"> -- First, the table cell's width is set to 100 by the HTML, then, it';s styled down to a width of 75. * <span style="mso-spacerun: yes"> Here, your table cell is empty; it doesn't need the "extra space between words. (And, if it did, a space followed by a &nbsp; code is shorter.) The best way I know to remove this code bloat is to do a search-and-replace, with control-H. Highlight a code to replace for the code to be replaced and the replacement text should be empty. I think it's best to pick small bits of the code to get rid of. I recommend starting with class="MSONormal" to delete non-working CSS calls. Then, style="margin-left:1.5in;text-indent:-1.5in" to bring paragraph alignment into agreement with your own external CSS. I'd retain align="center". It's an HTML code (not CSS) and arises because you centered the text in the original document. (If CSS & HTML do the same thing, I prefer HTML.) Finally, I think the easier way to convert a Word or Excel document to HTML borrows an old idea of Barry's: Insert the HTML (& CSS?) codes into the Word doc and save it as a plain text file. Then change the filename extension from .txt. to .htm. You can copy-and-paste most of the head section into the file. There will still be some cleanup to do, but you'll be starting from a tidier base. -rt_/)

    06/16/2016 08:06:04