While practicing with React, I added
<link rel="stylesheet" href="%PUBLIC_URL%/css/reset.css" />
to the head of index.html in order to reset the styles. However, I noticed that <h1>
still had a margin-bottom:0.5em
that I couldn't reset. After checking in Chrome debugger, I found these styles as displayed below, even though I didn't write any styles in that section. It's puzzling where these inherited styles are coming from and how can I reset the margin-bottom to 0. (I'm using create-react-app and antd components in my exercise project.)https://i.sstatic.net/prRBW.png