I disagree with the currently accepted answer. As uber5001 suggests, a px
is a fixed unit, and in a similar spirit to the efforts of the Android-specifc dp
.
Per Material’s spec:
When writing CSS, use px wherever dp or sp is stated. Dp only needs to be used in developing for Android.
Additionally
When designing for the web, replace dp with px (for pixel).