I'm playing with flexbox and I found this on codepen, and I was wondering, how can I put this vertically? I tried to change the border to top and bottom, but it disappeared.
HTML:
<div>
<h1>Hello World!</h1>
</div>
CSS:
h1 {
color: #444;
font-family: sans-serif;
font-size: 2.625em;
text-align: center;
padding: 5rem 0;
display: flex;
justify-content: center;
width: 100%;
}
h1::before, h1::after {
align-self: center;
background: #999;
background-clip: content-box;
box-sizing: border-box;
content: " ";
flex-grow: 1;
height: 0.2em;
}
h1::before {
border-right: 1.5625em solid transparent;
}
h1::after {
border-left: 1.5625em solid transparent;
}