+ 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?

18th Jul 2018, 1:08 AM
Emeruche Ikenna Cole
Emeruche Ikenna Cole - avatar
8 Respostas
+ 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
22nd Jul 2018, 6:38 AM
Emeruche Ikenna Cole
Emeruche Ikenna Cole - avatar
+ 2
px always works for me.
23rd Jul 2018, 8:45 PM
Dzeff
Dzeff - avatar
+ 1
- fonts in em or rem - padding, margin in %, vw, vh... using relative measurements helps for responsive design
18th Jul 2018, 2:04 AM
wenz
wenz - avatar
+ 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.
18th Jul 2018, 2:06 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 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.
21st Jul 2018, 11:25 PM
Alexi Gonzalez
Alexi Gonzalez - avatar
0
I use font size in pt, everything else in px.
18th Jul 2018, 1:30 AM
Paul Grasser
Paul Grasser - avatar
0
em for font size and for margin and padding use %. this is for responsive designing
22nd Jul 2018, 5:59 PM
Kevin Karl Leaño
Kevin Karl Leaño - avatar
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
23rd Jul 2018, 4:02 PM
Alexi Gonzalez
Alexi Gonzalez - avatar