Can anyone help me with styling a ul
tag using display: flex
? I'm trying to order it by column with flex-direction: column;
, but for some reason, it's not working.
Here is the CSS code for the container:
#nav li.four_columns ul.sub-menu {
width: 600px;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
flex-flow: wrap;
}
And here is the CSS code for the child elements:
#nav li.four_columns ul.sub-menu li {
flex-basis: 25%;
/* white-space: nowrap; */
/* overflow: hidden; */
/* text-overflow: ellipsis; */
/* border-bottom: none; */
}