Note that CSS usually overrides html attributes.  
Try setting the width with _style='width:16px' instead.  (Only 16px?)
You can use Firefox with plugin Firebug to see what CSS rules are being 
applied.
Regards,  D


On Friday, November 16, 2012 1:18:39 PM UTC, Francisco Barretto wrote:
>
> Hi there!
>
> I'm having some troubles using an image as a substitute for a submit 
> button...
>
> I'm generating the form in the controller and using a local image as 
> follows:
> INPUT(_type="image", _value="Editar", _width="16", _height="16", _alt=
> "Editar",  _src="/"+request.application+"/static/images/edit.png"),
>
> The problem is the image is rendered with the right height but the width 
> atributte seems to have absolutely no effect. The image's width is always 
> 210px. The funny thing is that the original hosted image is 128x128, so the 
> render is resizing it with a bigger width than the original png width.
>
> Any ideas? Thanks!
>
>
>

-- 



Reply via email to