What is the value in % or in px?

Hi all. What is the grid better ? Seen some make the interest, the other in pikselach.
But what is really better ? For a responsive site.
July 9th 19 at 12:52
6 answers
July 9th 19 at 12:54
and that is bad if you always blindly use only one or the other.

Well to combine them based on the task. For example, if you have the task the first column to make 340 pixels and everything else to stretch, what do you think you will use?
Do you have this sketch? Do not share ? - noel.Schmeler83 commented on July 9th 19 at 12:57

.layout {
 display: flex;
.sidebar {
 width: 340px;
.content {
 flex: 1;
- Allene_Crona78 commented on July 9th 19 at 13:00
July 9th 19 at 12:56
it is best to rem
July 9th 19 at 12:58
For the adaptive logical of your two options to use in %
You can, of course, and px sculpt, but then you need to write for every 100-200 px
And, in General, really, better to use rem
And why use rem for the grid? This is illogical - the grid size will depend on font size? - noel.Schmeler83 commented on July 9th 19 at 13:01
is just another fashionable phenomenon
it is not convenient, not practical, all of this spit, but use, because it's fashionable
use the percent - Allene_Crona78 commented on July 9th 19 at 13:04
Sorry the review can't be put like)
I can't even imagine the grid is based on rem. - Annabelle_Schoen commented on July 9th 19 at 13:07
July 9th 19 at 13:00
depends on the elements and design in the design of them. if you plan to create a responsive website that can be used as percentages and pixels. pixels better to use for items whose design mobile website and desktop will not differ. and interest - for dynamically-adaptable elements. For example, I create a div that needs to recede a little from the right edge, thus changing its width and the ratio of the indentation to the width of the element. then simply apply the percent. The height of the same element I can specify in pixels and it will be displayed the same on both "versions" of the site.
July 9th 19 at 13:02
of course percent better
and silly to argue
July 9th 19 at 13:04
for a responsive site css supports @media. Pixels or percentages? stupid question, every designer makes their own way

Find more questions by tags Adaptive designDesignHTMLCSS