CSS Reset is not working

CSS Reset is not working
0

#1

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.


#2

I found the problem thanks to @Ryan-ED.

In CSS file is not needed.