Re: Constraining text within a border



Don W wrote:

This page is not to be published. Actually, I need to print some
placards from a database and a browser seems like a good way to do
that.

Ah. Well, browsers are not normally regarded as the best "programs for
printing."

There are two sizes of placard I need to print -- 2 inches by 12
inches and 4 inches by 12 inches. Whatever text goes into those
areas must fit in those areas, so the font size should be adjusted
accordingly. I was hoping something like the 'max-width' attribute
could help me accomplish this, but it doesn't seem to work that way.

2 inches high by 12 inches wide? And nobody else will ever see it?

If there is a way to know how big the text will be when rendered, I
can adjust the font until it fits. Do you know of a way to do what
I'm trying to do?

Sounds more like a job for either a word processor or a desktop
publishing application, not HTML and a browser.

And 12 inches ... do a landscape document on "legal size paper" and take
it to a bumper sticker printer. :-)

--
-bts
-Friends don't let friends drive Vista
.


Quantcast