HTML CSS examples for CSS Property:border-bottom
Creating borders at the top and bottom of content
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from ww w .j a v a2 s.co m--> padding: 25px; } .div { border-top: 1px solid black; border-bottom: 1px solid black; width: 50px; height: 50px; } </style> </head> <body> <div class="div"> hello </div> </body> </html>