Rationale behind font sizes in bootstrap

Here are the header sizes from `bootstrap.css`: h1 { font-size: 38.5px; } h2 { font-size: 31.5px; } h3 { font-size: 24.5px; } I was surprised by the fact that these sizes are fractional (half-integers), which suggests that their precision is at least `0.25px` (less than 1%). How do web designers arrive at such sizes? Are they obtained by some scientific process, some calculation perhaps? Or do people simply stare at their site, playing with sizes until it feels right? How can a designer convince his teammate that it really ought to be `31.5px` and not just `31px`?
I was also wondering when I say those units, I was like, well! how would a screen display half pixel? if its possible, then they are two pixels right? definitely not two half pixels.

以上就是Rationale behind font sizes in bootstrap的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏