Much appreciated Lance. Cheers, Gazza
On May 23, 10:23 am, Lance Edgar <[email protected]> wrote: > 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 > athttp://groups.google.com/group/pylons-discuss?hl=en. -- 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.
