How to make padding:auto work in CSS?

auto is not a valid value for padding property, the only thing you can do is take out padding: 0; from the * declaration, else simply assign padding to respective property block. If you remove padding: 0; from * {} than browser will apply default styles to your elements which will give you unexpected cross … Read more