Help! Got a doubt

Help! Got a doubt
0.0 0


Hello! So I’m working on a webpage, but I had a doubt, after adding reset styles, there’s still some margin left at the top, but when I add display: flex property to the header class, it’s fixed. Why doesn’t it work with a reset style?




This will help you:

html > * {
    height: 100%;
    color: var(--color);
    margin: 0;
    padding: 0;
    text-align: center;


Hi, thanks for the reply! I tried it, but it still doesn’t work


margin: 0;

theres margin from your ul


thank you! it works perfectly