One-click PX/ EM /%/PT conversion tables, a custom conversion calculator, gnd generated reset CSS. How To Calculate Relative CSS Line Height Absolute value shows “px” or “ em ” with the number used. For example, line-height: 24px;. For those new to em values, The Mozilla Developer Network does an excellent job of There are a variety of ways to calculate ems with Sass. If you want to use relative sizes but but more consistency, try using rem instead, which refers to the default font size on the html element: This is too much work compared to using a function to adjust the font-size. Just add the parent px size in the top box, required size in the bottom and you're done! Thanks for the em idea! The size of an EM or percentage unit depends on its parent. I typically use em values for font free download book of ra pc and paragraph margins, and pixels for almost everything. It is made possible through sponsorships from products and services we like.