Click here to get back home

spec'ing type style, size & color

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
spec'ing type style, size & color Hul Tytus 12-01-2007
Get Chitika Premium
Posted by Hul Tytus on December 1, 2007, 4:29 am
Please log in for more thread options
comp.infosystems.www.authoring.html
spec'ing type style, size & color

When using html and linking to a text file to be displayed, as below,
does anyone know how the type style, colors & size can be specified?

<a href="http://www.panix.com/~hrp/test.txt"> [read more]</a>

Hul

Posted by Safalra (Stephen Morley) on December 1, 2007, 6:49 am
Please log in for more thread options
On Sat, 1 Dec 2007 09:29:45 +0000 (UTC), Hul Tytus wrote:
> When using html and linking to a text file to be displayed, as below,
> does anyone know how the type style, colors & size can be specified?


It can't - plain text files do not contain formatting information. If you
want to influence text formatting and still display the document in a web
browser then you're limitted to HTML or PDF (although PDF requires a
browser plug-in).


--
Safalra (Stephen Morley)

Common Web Browser Window Sizes:
http://www.safalra.com/web-design/usability/common-browser-window-sizes/

Posted by Stan Brown on December 1, 2007, 6:54 am
Please log in for more thread options
> When using html and linking to a text file to be displayed, as below,
> does anyone know how the type style, colors & size can be specified?

If it's a text file, served as text, I don't believe you can. If it's
an HTML file wrapped with <pre> ... </pre> then of course you can
style it.

Whether it's a good idea to do that is another matter.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you

Posted by David E. Ross on December 1, 2007, 1:20 pm
Please log in for more thread options
On 12/1/2007 1:29 AM, Hul Tytus wrote:
> comp.infosystems.www.authoring.html
> spec'ing type style, size & color
>
> When using html and linking to a text file to be displayed, as below,
> does anyone know how the type style, colors & size can be specified?
>
> <a href="http://www.panix.com/~hrp/test.txt"> [read more]</a>
>
> Hul

That link is 404, so I can't tell what you are really trying to do.

However, I know that HTML formatting for a non-HTML TXT file really does
not exist. The display will be formatted according to how the user has
configured his or her browser.

--
David E. Ross
<http://www.rossde.com/>

Natural foods can be harmful: Look at all the
people who die of natural causes.

Posted by dbr on December 1, 2007, 4:30 pm
Please log in for more thread options
Thanks all for the information. Helps to get a clear answer.

Hul

> On 12/1/2007 1:29 AM, Hul Tytus wrote:
> > comp.infosystems.www.authoring.html
> > spec'ing type style, size & color
> >
> > When using html and linking to a text file to be displayed, as below,
> > does anyone know how the type style, colors & size can be specified?
> >
> > <a href="http://www.panix.com/~hrp/test.txt"> [read more]</a>
> >
> > Hul

> That link is 404, so I can't tell what you are really trying to do.

> However, I know that HTML formatting for a non-HTML TXT file really does
> not exist. The display will be formatted according to how the user has
> configured his or her browser.

> --
> David E. Ross
> <http://www.rossde.com/>

> Natural foods can be harmful: Look at all the
> people who die of natural causes.

Similar ThreadsPosted
CSS Link Color within a Style September 2, 2008, 10:08 pm
Need help changing anchor text color in this style declaration April 19, 2006, 11:28 am
Browser won't relect font-size from style cheet December 26, 2005, 7:02 pm
Mac/Safari Gamma Problem matching HTML color to GIF color? April 18, 2006, 1:56 am
XHTML DOCTYPE breaks JavaScript x.style.top and x.style.left? July 5, 2005, 12:58 pm
& in one action? April 4, 2005, 6:34 am
Firefox - Prevent TextField size change when user changes font size? October 3, 2006, 6:21 pm
Color of hyperlink September 22, 2004, 3:08 pm
Cannot set background color (XML+CSS) July 6, 2005, 12:16 am
get user color schemes September 4, 2004, 5:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap