[pLog-svn] r5298 - plog/branches/lifetype-1.2/templates/summary

BalearWeb balearweb at balearweb.com
Wed Apr 11 12:39:58 EDT 2007


Decorative images should be part of the CSS and don't need
ALT text, and I think we can consider this kind of images as decorative
images.

The problem here is that we can't define the DIV background as part of 
the CSS
because it has to be specific to each user.  Or at least I don't know 
how to do
that.

Jon Daley wrote:
>  	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">&nbsp;</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
>>
>>     
>
>   




More information about the pLog-svn mailing list