{"id":3463,"date":"2017-03-30T15:24:50","date_gmt":"2017-03-30T13:24:50","guid":{"rendered":"https:\/\/florianbrinkmann.com\/en\/?p=3463"},"modified":"2020-02-09T10:59:54","modified_gmt":"2020-02-09T09:59:54","slug":"sass-function-for-calculating-line-height-without-unit","status":"publish","type":"post","link":"https:\/\/florianbrinkmann.com\/en\/sass-function-for-calculating-line-height-without-unit-3463\/","title":{"rendered":"SASS function for calculating line height without unit"},"content":{"rendered":"\n

This post shows you a SASS function, which calculates a line height without a unit. Origin of this action was that I no longer wanted to use rem<\/code>.<\/p>\n\n\n\n\n\n\n\n

What is the problem with rem<\/code>?<\/h2>\n\n\n\n

Until recently I always used rem<\/code> as the unit for line height and font size. Then I read the article \u00bbResponsive sizing with em-based design\u00ab by Keith J. Grant in the net magazine, which gave me a solution for a problem I had at this moment:<\/p>\n\n\n\n