On Tue, Jan 4, 2011 at 11:46 AM, Abhik Pramanik <[email protected]> wrote: > Hi all, > Is there a way to strip out the units from a variable? > I want to do something along the lines of: > $font-size: 18px; > $line-height: 1.3em; > $approximate-px-height: $font-size * $line-height;
As an aside, you probably actually want a unitless number for line-height: http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ Cheers, -Nate -- 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.
