masakudamatsu / template

Template code for making a website
MIT License
1 stars 0 forks source link

Figure out the best way of resetting CSS #6

Open masakudamatsu opened 6 years ago

masakudamatsu commented 6 years ago

We use recess.css for the time being.

Instead of using the so-called hard reset (i.e. using the universal selector *) or using the ever-popular Meyer's Reset CSS, we initially plan to adopt the normalize.css to make the default CSS styling consistent across browsers for the following reasons:

However, the normalize.css annoys me with its preset padding values. The border-box needs to be adopted in CSS as well. These two issues are solved by recess.css.

masakudamatsu commented 6 years ago

The normalize.css seems to keep the default padding values for many HTML elements. We need to see if this is annoying. In that case, we have to edit the normalize.css.

masakudamatsu commented 6 years ago

It is annoying, at least for now. For the time being, we go with the universal selector to set margins and paddings to be zero for all elements. As mentioned in this CSS Trick article, it destroys some useful default styling for submit buttons, for example. But we will see how to handle such situations.