+ 4
Pls when creating a site, do you use font-size, padding, margin and all other measurements as px, pt or %? Which is best for UI?
8 Respuestas
+ 2
Alexi Gonzalez That part of being careful is why I'm asking this. To make it flow well with user phone/computer screen, which unit should I ise
+ 2
px always works for me.
+ 1
- fonts in em or rem
- padding, margin in %, vw, vh...
using relative measurements helps for responsive design
+ 1
The units are different for a reason. They all have different use cases. Use px, rem, em, etc. Use % or a viewport unit for most other cases.
+ 1
2 diferents types of font size: relative(%) and fixed. Use pt if you are familiar with font or px for any. For responsive use %, but be carefull.
0
I use font size in pt, everything else in px.
0
em for font size and for
margin and padding use %. this is for responsive designing
0
% have problem when you mix with px or another fixed. Math problem.
| 20px-80% |
never 100%
if you are using %, use that for everything, margin padding...or =0