3 ms·
It's a good start, but the solution is based on the default behavior of HTML/CSS, that is to position text in the middle of the leading. Text should sit on the
by cristianpascu 11y ago
It's a good start, but the solution is based on the default behavior of HTML/CSS, that is to position text in the middle of the leading. Text should sit on the baseline. There's a sass library that solves this problem nicely: https://github.com/designbyjake/sassline https://github.com/designbyjake/sassline
Works even better with Tim Brown's modular scale library: http://www.modularscale.com/ http://www.modularscale.com/
- smpetrey 11y agoNow THAT is how you do it. I have been looking for something like this for a while now, thanks for sharing. Here's the demo of sassline's sexiness: https://demo.sassline.com/ https://demo.sassline.com/