S
S
Sergey But2019-01-30 20:15:10
css
Sergey But, 2019-01-30 20:15:10

Are percentage paddings and margins considered bad practice?

Are padding and margin percentages considered incorrect from a responsive point of view

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
inkShio, 2019-01-30
@inkShio

no, where appropriate.

V
vitaly_74, 2019-01-30
@vitaly_74

based on my practice, I moved from percentages to exact pixels.
I use percentages only when the main layout is given, and the rest are simply not there, and you need to do what is called "by eye" here the percentages help out.
in other cases, I write pixel by pixel - less hassle, all sizes are accurate, but it takes longer to do. but the customer will not have any pretensions to the size.

M
MishaPandovich, 2019-01-30
@MishaPandovich

I write in % only when the layout is rubber, if you need a fixed layout, it's better to use px.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question