mardi 28 juin 2016

Why do HTML elements have built-in margins and paddings

Ok... so this is a thing that has bothered me for quite a while. If you've used CSS or HTML you probably know that elements like header/body/div/p... etc have built in properties, out of which one of the most annoying ones is default margins and padding. Which in turn make us revert to things like: *{margin:0, padding:0} Which in turn leads to decreased performance and certain buttons shape breaking.

So I come here asking this question:

Is there a reason(or reasons) why normal html elements don't just come as a "clean slate" but rather have built in properties to traumatize and annoy users ?




Aucun commentaire:

Enregistrer un commentaire