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

I'm surprised that the official Tailwind docs recommend putting the `font-medium` class (i.e. `font-weight: medium` in CSS) on every child element of that <nav> and using multi-cursor editing to change them all simultaneously. `font-weight` is inherited, meaning that they could just add it once to the <nav> element.

I dislike Tailwind and don't use it, but I wonder how many papercuts like this come down to just not knowing CSS very well.



I use tailwind because I'm fed up with inheritance.




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

Search: