Consider the following css class definition, taken from the worpdress twenty-twelve theme:
.entry-header {
margin-bottom: 24px;
margin-bottom: 1.714285714rem;
}
Why is the margin-bottom defined twice, once with px and once with rem units? Which unit will be chosen by the browser?
I think because
remisn't supported by all browsers.Have a look at
caniuseto see browser support in detail.So they defined it as
pxfor the older ones and asremfor the ones which support it.