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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -