40px / 1px will do the trick.

On Thu, Apr 14, 2011 at 2:15 PM, Chris Roth <[email protected]> wrote:

> This seems like a simple enough thing to do, but I can't find it in
> the docs oddly enough. Is there a way to convert a value from pixels
> to an integer?
>
> For example:
>
> int(40px) == 40
>
> 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.
>
>

-- 
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.

Reply via email to