CSS CSS Basics The Box Model Margins


Can I convert px value into percentage? like px to em.

1 Answer

Robbie Thomas
Robbie Thomas
31,092 Points

No, px is Pixels and as far as I know, you cannot use px as a percentage. Px and Em are different measurements. It is possible to use percents with css.

Perhaps this page will help.