Answer the question
In order to leave comments, you need to log in
How to display :after and :before in browser print preview?
Hello, actually there is css:
.sline {
position: relative;
border-bottom: 1px solid #555;
padding: 0 5px;
}
span.sline:after {
content : "";
position: absolute;
right : 0;
z-index: 100;
bottom : 0;
width : 1px;
height : 20%;
background: #555
}
span.sline.all:before {
content : "";
position: absolute;
left : 0;
z-index: 100;
bottom : 0;
width : 1px;
height : 20%;
background: #555;
}
<span class="sline all">29</span><span class="sline">1588</span>
Answer the question
In order to leave comments, you need to log in
Will only help for firefox.
Background - not displayed when printing, you need to use border in your case and everything will work
span.sline.all:before {
border-right:1px solid #555;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question