Re: String Of Text (Number of Pixels / Pixel Size / Pixel Length)



"Jim Carlock" <anonymous@xxxxxxxxx> wrote:

If I'm putting together a list of links and I want to get add each
item one at a time inside a foreach($aNames as $sName) loop,
is there an easy way to get the number of pixels that the $aName
takes up?

No. Indeed, there is no guarantee that your page will be rendered in a
pixel-based browser at all.

The general rule is that you worry about the content, and allow the browser
to worry about the details of presentation.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: For loop and while loop. which one is faster?
    ... don't worry about that. ... the only possible difference between a for loop and a while loop ... is the jump prediction in your architecture's code instruction set. ... trust your compiler ...
    (comp.lang.php)
  • Re: Two date pickers
    ... ooooh I'm sure you could eliminate that loop ... not promising anything though... ... You shouldn't have to worry about that. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to do a for loop...and iterate a set number of times?
    ... know idiomatic ruby, all the 'language' stuff you have to worry about ... Usually collections define an each method. ... You don't have to worry ... about the beginning and end of the loop. ...
    (comp.lang.ruby)
  • Re: A note on personal corruption as a result of using C
    ... so exact details might be wrong): ... Don't worry too much about the detail; the key points are the use of ... the loop body. ... this was a personal attack and, ...
    (comp.programming)