h2 { position: relative; padding: 0 65px; text-align: center; } h2:before { position: absolute; top: calc(50% - 1px); left: 0; width: 100%; height: 2px; content: ''; background: #000; } h2 span { position: relative; padding: 0 1em; background: #fff; } p{text-align:center;} .png{ display: flex; justify-content: center; align-items: center; height: 100vh; background: url('2020-09.jpg') top center / cover no-repeat; } } h1 { position: relative; padding: 0 65px; text-align: center; }