Batuhan Bardak3,107 Points
Should we avoid from using px ?
pixels are absolute values so I think that it is not good choice for responsive design. Depend on this, my question is should we avoid from using pixels length or in which situation should we use it ?
David ConnerTreehouse Guest Teacher
Relative units such as percentages or ems, rems, etc. are always better to use as they are not fixed values. Pixels can be used but you will be causing a lot more work. Take this codepen for example. http://codepen.io/davidicus/pen/LEWReB . I am able to scale these icons by changing one font-size because I have used relative units. If I had used pixels I would have to adjust each and every pixel value for each break point.
Caleb KleveterTreehouse Moderator 37,861 Points
You use percentages instead, it talks about it in the next video.