Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a hack, if you can't use a uniwidth font, you can simulate bold font by having a `text-shadow` of the same color offset 1px to the right.

This is helpful for UI elements that need to become bold when selected.



But then it's a faux bold, and it's a no-no in typography. Her's a better technique: https://css-tricks.com/bold-on-hover-without-the-layout-shif...




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

Search: