I'm not sure what good attaching a stylesheet to a Microsoft Word
document does. When you save the document as an HTML file, Word
throws in all of its style and font settings into the HTML file AND
these settings override the same properties you may have specified in
your stylesheet. So, what good is it to attach a stylesheet????
I've only found one way to overcome this problem. You can append each
of the characteristics in your stylesheet with the keyword
"!important " and that will override whatever styles Word put into the
HTML document. For instance:
P { font-size: 18pt ! important }
You can also write a script to parse out the style settings from the
beginning of the document, but that just seems like more than you
should have to do to get this to work!
Anyway, just wanted to pass on the "!important " keyword solution...
since it took me a while to figure it out for myself.
-Michael
document does. When you save the document as an HTML file, Word
throws in all of its style and font settings into the HTML file AND
these settings override the same properties you may have specified in
your stylesheet. So, what good is it to attach a stylesheet????
I've only found one way to overcome this problem. You can append each
of the characteristics in your stylesheet with the keyword
"!important " and that will override whatever styles Word put into the
HTML document. For instance:
P { font-size: 18pt ! important }
You can also write a script to parse out the style settings from the
beginning of the document, but that just seems like more than you
should have to do to get this to work!
Anyway, just wanted to pass on the "!important " keyword solution...
since it took me a while to figure it out for myself.
-Michael
Comment