Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Word doesnot recognize div style attributes in html file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ram Kumar Karnataka - 13 Mar 2008 10:24 GMT
Hi,
I have a html file which looks like as shown in below:

<html>
<div style="width: 247px; height: 12px; position: absolute; left: 300px;
top: 10px;"><span style="color: #ff3333"><strong>filtered outside air
temperature</strong></span></div>
</html>

This html file when open in a web browser, is showing up correctly with the
text positioned to left 300px.

But the same html file when inserted into MS Word or opened using word, the
applied position info is not correct. Its by default coming at the beginning
of the line.

Can anyone please help me in this regard?

Thanks

Regards
Jean-Guy Marcil - 13 Mar 2008 13:18 GMT
> Hi,
> I have a html file which looks like as shown in below:
[quoted text clipped - 11 lines]
> applied position info is not correct. Its by default coming at the beginning
> of the line.

This is group is about programming in Word with VBA, not HTML.
I guess you could have posted in Page Layout or Graphics...

Anyway, make sure you are working with the  Wwb view in Word (View menu).

But really, Word is atrocious as a serious Web/HTML page editor. You should
use a real Web page editor. The official one from Microsoft is Frontpage.
There is a FrontPage group where you could ask questions (if you are using
Frontpage, not Word).
Also, there are thousands of free/shareware Web/HTML editors... You could go
to tucows.com to search for one.
fumei - 13 Mar 2008 19:42 GMT
I am SO with Jean-Guy on this.  Using Word for HTML editing is simply a bad
idea.  I wish they would get rid of it, and let Word do what it does well -
be a word processor.  As mentioned, there are lots and lots of decent to
excellent HTML editors out there, many free.  Use the right tool for the
right job.  Word is not the right tool for HTML.

Although I would have to say that IMO FrontPage is only marginally better.

>> Hi,
>> I have a html file which looks like as shown in below:
[quoted text clipped - 13 lines]
>Also, there are thousands of free/shareware Web/HTML editors... You could go
>to tucows.com to search for one.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.