Pixel size or what?

I see more and more the changing of fonts or heading tags to pixel sizes. Are pixels not quality more than actual size, their size being changed by the definition of image output. Therefore how does the CSS override this to have consistent output size, is it based on 720dpi or 1240 or …
thanks for any help understanding this.

A px is defined as 1px = 1/96th of 1in

https://www.w3.org/TR/css-values-4/#px


You should prefer using rem/em for font-size

I have preferred that as am suspicious of pixel size thinking it is not a size at all but density which can alter drastically. Your link is very helpful. However I see 40 pixels at barely over 1cm as a bit off for h1. That was the size used in the tuition here as reinforcing the lingering doubt. At least there is/was a standard for pixels but I still am unsure since devices quote differing ppi how much they can be stable.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.