The IMG function just creates a standard HTML <img /> tag. If you want it
styled in a particular way, you have to add the relevant CSS. If your CSS
is based on a particular class, you have to add that class to the IMG()
call:
IMG(_src=..., _class='logo')
Anthony
On Wednesday, June 27, 2012 12:03:10 PM UTC-4, BlueShadow wrote:
>
> Hi I like to make my Logo on my webpage a link to the index page.
> I found this line of code:
> {{=TD(A(IMG(_src=URL(r=request,c='static',f='images/Logo.png')),_href=URL(r=request,f='index')))}}
> But the web2py IMG function ignores the CSS tag which specifies that the
> logo should be adjusted to 12 columns.
> Now the Logo is gigantic :-(
> Can anyone help.
>
--