Reply to Re: How to preserve webpage text in Word Document

Your name:

Reply:


Posted by Nico Schuyt on 10/16/06 01:49

fdossantos.email@gmail.com wrote:
> I would like users to be able to copy text from the web page, then be
> able to paste that text in a word processor, such as MS Word. What I
> am hoping to accomplish is to allow the font-face and font size mirror
> that which is on the website. For instance, the website text is Arial
> 10pt. But when it is pasted into a Word document, that text defaults
> to the 'Normal' style, Times New Roman 10pt.

> I know this functionality can be accomplished as I see it across many
> sites. Problem is I cannot isolate what is allowing this seamless
> transition from web page to word processor to occur.

> As an FYI: The site uses CSS for layout and design. No tables or font
> tags are being used.

I'm not sure, but try specifying a font-family for the elements only instead
for body:
p,td {font-family: arial, verdana, sans-serif;}
instead of
body {font-family: arial, verdana, sans-serif;}

--
Nico Schuyt
http://www.nicoschuyt.nl/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация