Any of the following will work: !height = 50px #foo :height = !height + 10
!height = 50 #foo :height = !height + 10px !height = 50px #foo :height = !height + 10px or even !height = 50 #foo :height = (!height + 10) * 1px On Fri, Mar 20, 2009 at 10:33 AM, Josh <[email protected]> wrote: > > I know variable arithmetic works because the following produces CSS > (although useless) > > !height = 50 > #foo > :height= (!height+10) > > creates this: > > #foo { > height: 60; } > > Unfortunately something like this blows up: > > !height = 50 > #foo > :height= (!height+10)px > > Is there any way to accomplish the above? > > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en -~----------~----~----~----~------~----~------~--~---
