CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 20th, 2004, 06:51 AM
gronli21 gronli21 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 gronli21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Override style/css from included file?

Hi,

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.

thanks

-Dan

Reply With Quote
  #2  
Old April 20th, 2004, 07:25 AM
webguy's Avatar
webguy webguy is offline
Power User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Canada
Posts: 180 webguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 13 sec
Reputation Power: 5
Send a message via AIM to webguy Send a message via Yahoo to webguy
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

Reply With Quote
  #3  
Old April 20th, 2004, 07:35 AM
jbot's Avatar
jbot jbot is offline
a rootin', tootin', shootin'
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Feb 2004
Location: location.href="hame"
Posts: 3,475 jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 11 h 55 m 52 sec
Reputation Power: 94
Quote:
Originally Posted by webguy
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


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.

Reply With Quote
  #4  
Old April 20th, 2004, 08:27 AM
webguy's Avatar
webguy webguy is offline
Power User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Canada
Posts: 180 webguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 13 sec
Reputation Power: 5
Send a message via AIM to webguy Send a message via Yahoo to webguy
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 .

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Override style/css from included file?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT