Help! Got a doubt

Help! Got a doubt
0.0 0

#1

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?


Thanks!


#2

Hi,

This will help you:

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

#3

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


#4

*{
margin: 0;
padding:0;
}

theres margin from your ul


#5

thank you! it works perfectly