This version of Static Comp 1 is achieved using four levels of nested divs with display: flex;
.
- The highest level flex is applied to
html
to make centering the full graphic easier on very large screens. - The next level is applied to a div called
.container
that allowed for adjusting the placement of the links as a unit and the image. - The unit of links (a div called
.menu
) is then flexed to give us this great wrapped effect and also make responsiveness easier when the links stack. - Finally, each individual link is flexed to allow for easy alignment and justification, as well as to change the layout of the icon and link text from row to column when the links stack.
The image is from a Google search of "Today's Best Photographs," resulting in this great site from The Guardian. The color scheme is from Adobe Color, specifically the Dark Flower color theme. Icons are from Flaticon.