April 20th, 2004, 07:51 AM
Override style/css from included file?
I'm wondering if it is possible to override style settings in an external html document. I'm using the <--#include file command to include a html file. I don't want to modify the html file, because people (here at work) are making documents in word9 and save it to html. The major problem is that the <hr> line is too long and so is the text, so it don't fit on our website, at this point these documents are opened in a new window, but it would be nicer to intergrate them into our site.
April 20th, 2004, 08:25 AM
if the documents have inline style definitions/declarations then no, you can't override an inline or embedded style with an eternal style. At least not to my knowledge. If this is possible I would grateful to find out how
There are free programs out there that strip MSword html tags from webpages.
You would need to edit the file, then choose to remove all MsWord code. This way you could define your own styles for headers and paragraphs in an external css sheet and then you could include it into the page.
I don't recall where you can get the free software, but it's on the net somewhere...
However it may be worse, as you may strip needed code. It's a thought, so don't go rushing to do this.
I'm sure someone else will have a good sugestion for you
April 20th, 2004, 08:35 AM
not necessarily so. if you use the "!important" declaration in your style definitions (and Word hasn't), then it should take precedence. this declaration prioritises the over-riding style.
Originally Posted by webguy
April 20th, 2004, 09:27 AM
It's great you brought this up, but IE support for this, last I heard, is next to nill.
While other major browsers support this, Ie is the majority browser. So we can't rely on !important.
However, I don't use !important at all so it could be I am missing something important here..no pun intended .