Word – way to export Word styles as CSS

cssexporthtmlmicrosoft wordstyles

We have a standard document template in word for internal documents. The Graphic Design / Technical Writing staff have all the styles rigged such that we don't have to do any formatting ourselves.

There are some HTML pages we're looking at publishing to our website that we'd really like to be styled the same way as word documents using the template. The styles aren't all that complex, so recreating them in CSS from scratch is possible, if time consuming. So, is it possible to get Word to export the Styles in a document to a CSS file?

Best Answer

For the record, this is what I ended up with:

(This all applies to Word 2003, other versions should be similar.)

Under File, choose "Save as Web Page."

In the format pull-down, choose "filtered web page" and save as a .htm file.

Th HTML that gets kicked out is pretty terrible, BUT at the very top of the document is all of the CSS styles in one style block. Ignoring the slightly strange class names, the CSS isn't bad. I found you could just pull that css block out, drop it in a .css file, and html pages pointing at it actually looked just like the word docs.

(And, it already works in IE!)

Clunky, but it works.

Related Question