I am not mixing pt and px, my css is defined as 20pt the result from getStyle is 26.667px instead of 20pt. And I agree about the pt may be seldom used but that is how the css is written for what I am working on. Could it be the browser converting pt to px?
On Fri, Apr 2, 2010 at 11:15 AM, ghazal <[email protected]> wrote: > Aren't you mixing pt and px ? > AFAIK, pt is seldom used as a web measure. > > On Apr 2, 8:08 pm, Trevor Orr <[email protected]> wrote: > > When I use getStyle to get an elements font-size that is specified as > 20pt > > the getStyle function returns 26.6667px. How do I get 20pt instead of > > 26.6667px? > > > > Here is my example:http://mootools.net/shell/cRxnN/ > > > -- > To unsubscribe, reply using "remove me" as the subject. >
