Answer the question
In order to leave comments, you need to log in
Do pixelperfect break flexbox behavior or do flexbox right break pixelperfect?
The point is. All layouts were made by pixelperfect with an extension in the browser. +- 5 pixels. Tasks such as such did not set pixel to pixel, just from the time I learned the basics of layout it often came across that a pixel perfect thing is necessary and correct, etc., etc., so I considered it mandatory. Using flexbox and doing everything according to PP, you have to abandon justify-content, and use crutches in the form of margin to fit the layout, in turn, this greatly interferes with adapting to smaller resolutions, you have to constantly interrupt the margin sizes, with justify-content and flex- wrap is essentially adaptable and it doesn’t need to adapt itself, but it doesn’t fit PP with a discrepancy of up to 50-70 pixels. With PP, it also takes much more time until you adjust everything. So do you need to stick to PP or can you score and do what is more convenient, if the customer does not require How are things with you in general? How do employers feel about it?
Answer the question
In order to leave comments, you need to log in
Good afternoon. Taste, of course, but I am for the normal work of styles, and not fitting to pp, the exception is the case when such a fit is due to some idea of the designer (but in 90% of cases this is just a design flaw).
If the discrepancy is 50 pixels, then use a different layout approach to be closer to the layout. It is also important to distribute the space between the blocks and their positioning in the document.
In other words, if you see that you have 3 blocks in a row and the space between them should be distributed +/- evenly (but in the design one of the blocks is located out of place), then justify-content will be justified, but if you have 3 blocks different widths with different indents and such a decision is due to some "vision", then you have to get out (:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question