CSS Reset is not working

Hi everyone,

I am using the CSS reset as shown below but however, it is not working.

* {
  margin: 0;
  padding: 0;
}

The CSS reset will only work if I code it in this order shown below.

html{
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
}

I am starting to doubt it’s my machine because the CSS reset works on CodePen.

Thanks for looking into this silly question.

I found the problem thanks to @Ryan-ED.

In CSS file is not needed.