I'm currently working on creating a responsive header with two columns. My goal is to have the button in the right column vertically centered.
I am aware of the method for centering items using 'top: 50%; margin-top: -xy px', but my button has a fixed height of 40px.
To implement this method, I tried wrapping the button in a 'div {position: relative}'. However, this did not work because the div does not stretch its own height.
Is there a CSS solution to achieve vertical centering? Initially, I considered Flexbox as an option, but it lacks browser compatibility.