[pLog-svn] r5298 - plog/branches/lifetype-1.2/templates/summary
Jon Daley
plogworld at jon.limedaley.com
Wed Apr 11 07:55:53 EDT 2007
Yes, the alt tag is good, but I don't know about the ratio thing -
it depends on the picture. I was playing around to fix this and wanted to
use a div, but the picture I had looks much better scaled than cropped.
On Wed, 11 Apr 2007, BalearWeb wrote:
> Hello,
>
> The reason why the image was displayed as a background was that I think
> it is much nicer to have a picture cut-off, than resized without
> respecting the original proportions of the picture, specially when it is
> a picture of a face.
>
> For example, if you resize a 120x60px face to 60x60 it can look awful. I
> contrast, if you cut-off and just show a part of the 120x60px, you might
> end up seeing part of the face, but at least you face will not be narrowed.
>
> Never mind, it is not very important. But if we are going to use the img
> element, then we need al "alt" text:
>
> - <img src="{$picture->getPreviewLink()}" width="60" height="60" class="postgrav" />
>
> + <img src="{$picture->getPreviewLink()}" width="60" height="60"
> class="postgrav" alt="{$postOwner->getUsername()|strip_tags} />
>
> Kind regards,
>
> Elena
>
> oscar at devel.lifetype.net wrote:
>> - <div style="border:solid #cccccc 1px;width:58px;height:58px;background:url({$picture->getPreviewLink()}) no-repeat center" class="postgrav"> </div>
>> + <img src="{$picture->getPreviewLink()}" width="60" height="60" class="postgrav" />
>>
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
--
Jon Daley
http://jon.limedaley.com/
If you cannot convince a man of the self-evident
truths of logic, then all you can do is get
a big stick and beat him until he submits.
More information about the pLog-svn
mailing list