text vertical align not working code example
Example 1: text vertical align css
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style type="text/css">
div {
display: table-cell;
width: 250px;
height: 200px;
vertical-align: middle;
}
</style>
</head>
<body>
<div>Vertically aligned text</div>
</body>
</html>
Example 2: css vertical-align not working
<div class="outer">
<div class="inner"/>
</div>
.outer {
display : flex;
align-items : center;
justify-content: center;
}