This is targeting the navbar element (which doesn’t exist in HTML). Don’t you want to target the element that has the id of navbar?
Also, most browsers add default margins on the body, which would keep your navbar from touching the very top of the viewport, so you might want to set those to 0.
Hi bbsmooth, thank you for extra quick response. Above I wanted to paste html code as well as css code. I have seen it was not quite so. But here goes my html code and it does have id of navbar:
Oh, ye, thank you. I guess that would do it - margin in the body:
body {
display: flex;
width: 100%;
height: 100%;
background-color: gray;
align-items: center;
margin: 0 0 0 25px;
}