Skip to content
Advertisement

Items flex item is left-aligned and right-aligned, how to center it when the browser window is resized down?

I have a navbar with 3 flex items as shown below, and I can’t seem to figure out how to center the containers when vertically collapsed.

enter image description here

When I shrink the browser this is the result –

enter image description here

How do I center the B logo as well as the icons container at the bottom to be vertically centered to the middle when the browser collapses?

The code is below:

JavaScript
JavaScript

Advertisement

Answer

simply using pure CSS ‘s media queries:

JavaScript

see an example

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement