Re: Re: PHP programming strategy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperling@xxxxxxxxx (tedd) wrote:
....
>You don't need the width="210" height="300". For example, this works:
>
><div class="pfm">
>     <img src="Images/Nxxxxx.jpg">
>     <p class="nrmltextn">Yanni Nxxxxx </p>
>     <p class="notetextn">Sally Riordan Scholarship, 2007- </p>
></div>

I have read that if you omit the dimensions you will sometimes see the page reshuffle
itself as it loads, because the browser starts loading, then finds the dimensions are
incompatible with it's initial assumptions.  I don't know how serious a problem this is,
but  if the dimensions prevent it happening I am happy to provide them.
 In my scheme of things <p> has normal paragraph spacing, 'nrmltxtn' has zero spacing, and
'notetxtn' is a size smaller, also with zero line spacing.

>Also, if you use first-child, it could be taken down to:
>
><div class="pfm">
>     <img src="Images/Nxxxxx.jpg">
>     <p>Yanni Nxxxxx </p>
>     <p>Sally Riordan Scholarship, 2007- </p>
></div>

Except that line 2 is smaller than line 1.   In my scheme of things <p> has normal
paragraph spacing, 'nrmltxtn' has zero spacing, and 'notetxtn' is a size smaller, also
with zero line spacing.

I could redefine <p> & <h4> for this class (provided I never want to use the normal values
in it), but there is something to be said for having a standard set of fonts, and always
knowing what I will get, rather than having <p> mean something different every time I use
it.

And, as others have pointed out, a few thousand bytes more or less is totally immaterial.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux