News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of simple HTML by grishka on Wednesday January 27, 2021 @02:07PM (#25932424)
That's what a CSS reset is for.
Re:The unreasonable effectiveness of simple HTML by moring on Thursday January 28, 2021 @02:10AM (#25939075)
HTML buttons have special behaviour in CSS (not even styles, but differences in the rules how they work) that cannot be reset using a CSS reset. I actually tried to make a button fit into the reset of the UI until I gave up and used a div.
Re:The unreasonable effectiveness of simple HTML by FrontAid on Thursday January 28, 2021 @03:25AM (#25939524)
Like what? I can't think of any "special behaviour" that I would not want to have in a button and that cannot be changed by CSS.
Re:The unreasonable effectiveness of simple HTML by moring on Thursday January 28, 2021 @04:06AM (#25939804)
Vertical alignment.

"button are special element and their content is always vertically aligned by default. Even all the propertise are the same, if you don't center the text in the link, you won't get the same visual"

https://stackoverflow.com/questions/64766922/what-can-make-t...