Is instructor choosing random meaningless numbers or is there a science to this?
The instructor uses such specific values like 34 px when adding a margin below the <h2> element. Why not just round it to an even 35px? Is there a science to this, are these really common numbers or is Guil just choosing random numbers?
The same question can be applied to font sizes as well.
Matthew Tran16,339 Points
The numbers were pre-picked to be aesthetically pleasing. They may seem odd, but the 1 px difference between 34px and 35px does matter in the overall scheme of things.
But no, there is no science to the numbers he's choosing, and they aren't typically common numbers.
I don't think Guill uses meaningless numbers. He's an experienced web designer and thus uses many of the numbers from his experience alone. You can achieve this by practicing more and more. He uses many of the numbers to make the subject clear to us and he teaches many of the reasons behind those(if you carry on you'll understand).
And the reason for using font-sizes like that, It depends on the content of the web page, ( so there's no specific rule on that).
Hope that helps. Happy styling !!!
Edit: Later I understood, things are better explained in the "Typography" course on Teamtreehouse.