Percentage vs Px in Designing the application

While designing an application, when should we use percentages or pixels (px)? Which option is more responsive with respect to various devices?

9 Likes

Percentage is always for dynamic size and responsive for various screen sizes. It will support for various devices because it will adjust itself according to screen size.
Pixels is only for static or fixed screen sizes. It will be used when you have fixed size of a screen.

3 Likes

Majorly depends on the layout of the page, percentage will always be more responsive than fixed(px). Generally all the layouts should be flexible according to the mobile width. And few elements like image, icon, button goes fixed type.

4 Likes