When I use “text-align” to move 3 links to the right, and the h1 to the center, it wont work. It only works if I remove the display:flex, but I would like to use it in order to align all the elements in “header” (“nav-bar”(3 links) and h1). Thanks. Btw, freecodecamp wont allow me to post links because I havent used the forum much so I just posted the code. Thanks.
header{
display:flex;
border: 10px solid blue;
}
#nav-bar{
text-align:right;
}
h1{
text-align:center;
}