I'm attempting to vertically center elements using CSS flexbox. I have successfully implemented it with the non-vendor-prefixed code, but I am facing issues in Webkit (Chrome) even with the vendor prefixes.
My goal is to vertically align the spans within #trigger.
Below is my current CSS:
#trigger{
/* 2009 syntax */
display: -webkit-box;
display: box;
/* current syntax */
display: -webkit-flex;
display: flex;
}
#trigger span{
/* 2009 syntax */
-webkit-box-align: center;
/* current syntax */
-webkit-align-items: center;
flex-align: center;
}
Any suggestions on what could be causing the issue?
If you are familiar with other vendor prefixes or versions of the properties I am utilizing, please share them to ensure compatibility beyond just Webkit browsers.