HTML CSS examples for CSS Property:padding
Create vertically centered horizontal line to fill width of title with padding
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> li.sub-menu-item:before, li.sub-menu-item:after { content:"\2015 Example \2015 \2015 " } li {<!--from w w w .ja va 2 s.co m--> display:inline-block; } </style> </head> <body> <ul> <li class="sub-menu-item"> <a href="#"></a> </li> </ul> </body> </html>