Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
DJ DJ is offline
external usenet poster
 
Posts: 23
Default How do i preserve css styling when opening an html file in word?

I have an html file which has some basic styling - style="float:right". When
I open this file up in word, word ignores the styles. How do i get word to
use the style.

What I am trying to achieve is to create an html page where some text
appears on the right of the page and this is preserved when opening the page
in word. The html page has to drive this behaviour as I can't modify any word
settings.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Bob Buckland ?:-\) Bob   Buckland ?:-\) is offline
external usenet poster
 
Posts: 2,073
Default How do i preserve css styling when opening an html file in word?

Hi D.J.,

This article lists some of the limitations of page layout via HTML in Word
http://support.microsoft.com/kb/212270

You won't be able to 'float' text for positioning without it being supported in a frame or shape or table, Word isn't page layout
software, but Word can justify text right in a paragraph or wrap it around a picture. 'Float', if you're referring to a top level
CSS class is one of the CSS elements that Word doesn't support. Word is supposed to ignore the elements it does not support.

Without having a link to the web page to view, not knowing the version of Word you're using, or if you're using embedded CSS, or an
attached CSS sheet, what you may want to try is creating a page in Word the way you want it to look while you're in Web Layout view,
and then use File=Web Page Preview (if pre Word 2007) to open the page in the browser and then in your browser right click and use
View=Source to see how word positioned the graphic, then mimic that CSS in the creation of the HTML page.

===============
"dj" wrote in message ...
I have an html file which has some basic styling - style="float:right". When
I open this file up in word, word ignores the styles. How do i get word to
use the style.

What I am trying to achieve is to create an html page where some text
appears on the right of the page and this is preserved when opening the page
in word. The html page has to drive this behaviour as I can't modify any word
settings.
--

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
DJ DJ is offline
external usenet poster
 
Posts: 23
Default How do i preserve css styling when opening an html file in wor

Hi Bob,

Thanks for your reply. I am going to try this out on Monday when I'm back at
work.

"Bob Buckland ?:-)" wrote:

Hi D.J.,

This article lists some of the limitations of page layout via HTML in Word
http://support.microsoft.com/kb/212270

You won't be able to 'float' text for positioning without it being supported in a frame or shape or table, Word isn't page layout
software, but Word can justify text right in a paragraph or wrap it around a picture. 'Float', if you're referring to a top level
CSS class is one of the CSS elements that Word doesn't support. Word is supposed to ignore the elements it does not support.

Without having a link to the web page to view, not knowing the version of Word you're using, or if you're using embedded CSS, or an
attached CSS sheet, what you may want to try is creating a page in Word the way you want it to look while you're in Web Layout view,
and then use File=Web Page Preview (if pre Word 2007) to open the page in the browser and then in your browser right click and use
View=Source to see how word positioned the graphic, then mimic that CSS in the creation of the HTML page.

===============
"dj" wrote in message ...
I have an html file which has some basic styling - style="float:right". When
I open this file up in word, word ignores the styles. How do i get word to
use the style.

What I am trying to achieve is to create an html page where some text
appears on the right of the page and this is preserved when opening the page
in word. The html page has to drive this behaviour as I can't modify any word
settings.
--

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues while opening HTML document for editing in WORD tvraghavan Microsoft Word Help 1 February 22nd 07 03:54 AM
Extra carriage returns when opening an HTML file in Word. RJ Microsoft Word Help 0 June 9th 06 08:00 PM
How can I convert a WORD document to html and preserve columns David Fischer Microsoft Word Help 2 April 11th 06 03:07 AM
Opening HTML doc in Word: Can control the template? tspratt Microsoft Word Help 0 October 14th 05 10:20 PM
prevent txt file from opening as html? [email protected] Microsoft Word Help 3 July 24th 05 01:45 AM


All times are GMT +1. The time now is 11:32 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"