Re: WIDTH attribute for peformatted text



Jud McCranie <youknowwhat.mccranie@xxxxxxxxxxxx> wrote:

> I should explain what I'm doing.

Yes. And it's generally best to _start_ from the original problem, instead
of assumed solution (which so often turns out to be a dead end, and nobody
can help you in the right direction if he doesn't know where you were
heading to).

> I'm trying to make a program
> generate HTML output for its reports.

Wait a second. In which context? WWW, intranet, or perhaps just one
computer? And what reports?

> They all need fixed-width fonts.

That's almost probably wrong analysis in all contexts. If something "needs"
such things, it's probably a legacy application, so why would it "need"
HTML as a data format?

> Some of the reports range from 75 to 132 characters wide.

(Sounds like a legacy application, originally designed for line printer
output.)

On the web, the minimum line width you can assume is exactly zero.
Even in other contexts, avoid imposing arbitrary limits, even when they
might not exceed the dimensions of your current display in fullscreen mode.

> I
> want the recipient of the HTML file to be able to view the file
> without any horizontal scrolling, and also to have it nearly fill the
> width of the screen, no matter what screen resolution the recipient
> has, etc.

Sounds like you are defining a Mission Impossible for yourself, building a
logical contradiction into the requirements.

Instead of telling what you want, why don't you describe the structure and
purpose of the data?

> I've found out about setting the font size in <P style
> ...>,

Too bad. I hope you can unlearn it.

> (<pre>
> is listed as depreciated, but I don't know what replaces it.)

No, <pre> is not depreciated, and it is not deprecated (two different
things). The width attribute in it is, but that's rather irrelevant, given
the fact that it was vaguely defined (semantically) and was never
implemented in any browser of some general importance.

So what made you think you need to preserve the exact line structure and
spacing of the HTML source in the visual presentation (that's what <pre>
means) _and_ not preserve it?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


.



Relevant Pages

  • Re: Web pages backgrounds
    ... and put some Javascript in the HTML that detects the User's ... >> screen resolution, ... Then, generate separate CSS stylesheets for use with 800x600 monitors, ...
    (comp.programming)
  • Re: DAP and webhosting company.
    ... The main way of accessing a web site is by using HTML. ... I want to be able to create reports like the ... Is it not possible to host Daps on external web hosting companies? ... the white papers I've read point to creating the dap on the web server ...
    (microsoft.public.access.externaldata)
  • Porblem while browsing
    ... We ran into a problem like yours using Crsytal Reports, ... Exporting to HTML 4.0 produces formatting issues on large ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Poor perfomance with Spreadsheet OWC 10 with more than 200 columns
    ... It needs 7 minutes to be load. ... > We have already created other reports with less number of columns (60 ... > We are loading the OWC with the HTML Data Param using Response.Write ...
    (microsoft.public.office.developer.web.components)
  • Re: componet or code to anaylze IIS weblog
    ... It produces HTML reports, but you'll have to ... If as pages - what does it do - does it generate HTML files. ... >> Take a look at (Lite version free) Alterwind Log Analyzer: ...
    (microsoft.public.dotnet.framework.aspnet)