It a smarty way to add a new line before every span tag.
span {
display: inline;
}
span:before {
content: "\a ";
white-space: pre;
}
<p>
First line.<span>Next line.</span> <span>Next line.</span>
</p>
Now as the same way ,i want to add a new line at the end of every input
element,why no new line for the input
element?
input{
display:inline;
}
input::after{
content:"\a ";
white-space:pre;
}
content:<input id="1th" type="text" >
content:<input id="3th" type="text" >
content:<input id="4th" type="text" >
` can do ,but i want a css way. – Oct 02 '18 at 13:33