This is reset CSS . The goal is to remove non-zero default intervals for all elements ( * ). All browsers have a default stylesheet, and they are not very consistent with each other. Take <form> as an example.
Note. Setting the left and top properties to 0px not suitable for me. This is likely to cause problems with absolute positioning. When positioning an element, you can only determine its vertical or horizontal offset (not both), leaving the other offset unchanged. This reset CSS does not allow this because it gives values ββfor both vertical and horizontal. You can also place an element below. If you have a reset, it will have both bottom and top , which in most cases is not needed and can change the height of the element or ignore one of the offsets. In any case, this will give you something inappropriate and will not break your layout.
For those who want to know more: http://www.w3.org/TR/CSS2/visuren.html#absolute-positioning
Alin purcaru
source share