|
Posted by Chris F.A. Johnson on 10/02/07 03:42
On 2007-09-28, William Gill wrote:
>
> Chris F.A. Johnson wrote:
>> You have no idea what anyone's browser window look like. Setting a
>> height in pixels (for anything other than a fixed-size object like
>> an image) is doomed to failure.
>
> I may be setting myself up here, but I have been wondering. Suppose I
> have a fairly small block of text I need to insert on a page like an
> insert or sidebar in print. I could
> a) add a floated div of specific height (in ems of course) that
> would be fluid,
If you set a height, it might not be enough to contain the text.
If my default is large (as it is), then that text will need more
lines.
> b) have a text image of specific dimensions (in its intrinsic
> pixels).
You don't know how big that text will appear on my screen. There's
a good chance it will be too small for me to read.
> but why couldn't I
> c) create a div that I treat like an image using pixels dimensions,
> but without the bandwidth hit of the image?
It will almost certainly be too small to contain the text at a
comfortable viewing size (for me, and probably many others).
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Navigation:
[Reply to this message]
|