As I work on building my portfolio, I have implemented links as buttons using flexbox to make responsiveness easier. The height of these flexboxes is set dynamically using JavaScript with percentages.
Despite trying various suggestions, none of them provided the exact solution I was looking for. Some of the methods I experimented with include:
justify-content:center
align-self:center
vertical-align:center
Currently, I am working on Ubuntu 19.04, using Atom as my text editor, and PHP version 7.2.17.
To view the code, visit: https://codepen.io/fTc_CZ/pen/joGYJr
My expectation was for the text to align in the center of the square rather than at the top.