I’m having trouble understanding flexbox and what it targets.
i.e presume I have the following html code
<header> <ul class="navBar"> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> </ul> </header>
In CSS to make home and about line up like a navigation bar (on the top, right side) would the correct thing to do be to set the header as a flex box or should I set the list items as inline-flex boxes, or set the unordered list as a flexbox etc. I’m finding it hard to understand what the display: flex; element targets like does it only target its direct children or everything under it…