Skip to content

Em to px #23

merged 3 commits into from Nov 13, 2011

5 participants


I added a goodie that does em to px conversion per the request here:


Searching for "8px in px" or "27em to em" would return a wrong value... It's stupid but we should think about every possibility.


I didn't think "em to px" is a valuable conversion at all, as its relative entirely on the fontsize used .

DuckDuckGo member
yegg commented Nov 11, 2011

@kentfredric: like in ?

Maybe we should default to some pt size and suggest syntax to specify a different pt size?


@kentfredric - we are assuming a default of 16px for now (that gets it started, may add the ability to change default size later). I am also working on adding conversions to and from points as well as em and px
@elektronikLexikon - you are correct and I will handle that as well

sdball commented Nov 11, 2011

@kentfredric Sure it's relative, but browsers have a default font-size of 16px. Going from that can still yield helpful results. Maybe we can come up with a sensible query syntax to specify the base font size.

@yegg yegg merged commit 8857e33 into duckduckgo:master Nov 13, 2011
DuckDuckGo member
yegg commented Nov 13, 2011

About to go live -- I added a parenthetical note about the base front size choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.