Hacker News new | past | comments | ask | show | jobs | submit login

One problem here: line height should be unit-less. Use just a number and that number will become a multiple of the font value so font-size 2rem line-height:1.3 don’t use units



This was a major stumbling block for me until I read about it on MDN. My blog's longish titles were always spilling over into the next line until I removed the em unit. Serves me right for not RTFM-ing and thinking I know enough HTML to cobble together a basic site.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: