News for hackers. Stuff that matters.
Re:Stop Using Icon Fonts by kevincox on Wednesday February 24, 2021 @02:21PM (#26254340)
You can do this by sizing via `em` which is based on the text size.
Re:Stop Using Icon Fonts by ourcat on Thursday February 25, 2021 @08:19AM (#26262409)
That's right. `em`, `rem` or `px`.
Re:Stop Using Icon Fonts by kevincox on Thursday February 25, 2021 @08:54AM (#26262713)
rem and px won't be based on the size of the surrounding text. rem is based on the size of text on the HTML (IIRC) element and px is based on display pixels.