On 5/23/2010 7:04 AM, gazza wrote:
${h.link_to("List Client Orders",
     url(controller="client", action="clientorderlist", id=c.id),
     class_="buttonred")}


With the above I want to prepend and append white spaces to the label.

${h.link_to("   List Client Orders   ",
     url(controller="client", action="clientorderlist", id=c.id),
     class_="buttonred")}

How do you achieve this as it does not look like its working.
Just a guess, but I think your problem here is merely the whitespace-collapsing nature of HTML? Try adding this to your style:

a.buttonred {
    white-space: pre;
}

Or, another (to me, uglier) method would be simply to include non-breaking spaces in your link text like so:

${h.link_to(h.literal("   List Client Orders   "),
    url(controller="client", action="clientorderlist", id=c.id),
    class_"buttonred")}

Lance

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to