Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to work out Conversions from PX to Percentages Re: How to work out Conversions from PX to Percentages

#132563
Paulie_D
Member

The concept that a pixel actually represents a % of the viewport is wrong

A 16px font is always going to be 16px tall no matter how tall or wide the viewport is. In that sense, any relationship between px and % is broken.

That’s why the vh & vw properties have been introduced. They actually ARE % of the viewport height and width respectively.