Does order matters when defining a class for a parent element and its child elements?
Hello guys, it's been a long time I'haven't touch HTML/CSS and I need to refresh a bit... can someone explain why when I try to change the class from the ul block to the nav block instead, nothing seems to happen please
7 Replies
If setting/moving the class .navigation-bar to <nav> element the flex item will only be one so nothing to flex.
hmm like it will try to only flex the ul tag and not its content ?
Only direct children
the flex only act on direct children of the element ?
oh okay I see
Chris Coyier
CSS-Tricks
CSS Flexbox Layout Guide | CSS-Tricks
Our comprehensive guide to CSS flexbox layout. This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and the child elements (the flex items). It also includes history, demos, patterns, and a browser support chart.
thanks !!
No worries