Info

Magnus Eriksson, Developer at Vaimo, a web agency heavily into Magento. Doing alot of coding in my spare time.

For measurements in the layouts

px number of real pixels. 100px is the same regardless of screen size.

In Inches - based on screen size. That is, it increases or decreases depending on the screen.

mm Millimeters - based on screen size. same as above.

pt points - 1 / 72 part of the above inch. It also increases or decreases depending on the  size of the screen.

dp Density Independent pixel - based on the physical density of the screen.
Assumes that a pixel is a pixel at 160dpi. However, it does not always make the size proportionally correct. You can also use dip.

sp Works like the dp but also takes into account the user’s font settings. This is recommended only to use on fonts.

Comments

No comments yet.

Leave a Reply

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS