We would like to know how to add pipeline between page numbers in pagination control with after and last-child.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
a:after, span:after {<!-- ww w. ja v a2 s.c o m-->
content: " |"
}
a:last-child:after {
content: ""
}
</style>
</head>
<body>
<a>Previous</a>
<a>1</a>
<a>2</a>
<a>3</a>
<span>4</span>
<a>5</a>
<a>6</a>
<a>Next</a>
</body>
</html>
The code above is rendered as follows: