News for hackers. Stuff that matters.
Re:A beginner’s guide to web accessibility by JoeCianflone on Sunday March 21, 2021 @09:32PM (#26535871)
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
Re:A beginner’s guide to web accessibility by approxim8ion on Monday March 22, 2021 @07:31AM (#26539397)
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.