css - Lines either side of date header -
im using following css create 2 lines either side of date header
.date-header span { display: inline-block; position: relative; } .date-header span:after { content: ""; position: absolute; border-bottom: 1px solid #caa69a; top: 6px; width: 160%; left: 110%; } .date-header span::before { content: ''; position: absolute; top: 6px; border-top: 1px solid #caa69a; width: 160%; right: 110%; }
however lines change size according length of date. i'd lines stay fixed length. i'm not sure edit or add?
Comments
Post a Comment