I am using bootstrap cards for my React project and struggling to make the text vertically aligned in the middle. This is what I tried so far, how to correct it?
<div key={element.symbol} className="card text-white bg-success" style={{ width: "25rem", margin: 10, paddingLeft: 2, paddingTop: 2, }}>
<Link style={{ color: 'white', textAlign: 'center', justifyContent: 'center' }} onClick={() => setsymbol(element.symbol)} to={"/chart/" + element.symbol}>
<span style={{ float: 'left' }} >{element.symbol}</span>
<span style={{ float: 'right' }}>{"%" + firstHalf + "." + secondHalf}</span>
</Link>
</div>