CSS for fancy header with border at sides

.fancyheader {
  line-height: 0.5;
  text-align: center;
}
.fancyheader span {
  display: inline-block;
  position: relative;  
}
.fancyheader span:before, .fancyheader span:after {
    border-bottom: 1px solid black;
    content: "";
    height: 5px;
    position: absolute;
    top: 0;
    width: 100%;
}
.fancyheader span:before {
  right: 100%;
  margin-right: 15px;
}
.fancyheader span:after {
  left: 100%;
  margin-left: 15px;
}