div:nth-child(1) { border-style: none; } div:nth-child(2) { border-style: hidden; } div:nth-child(3) { border-style: dotted; } div:nth-child(4) { border-style: dashed; } div:nth-child(5) { border-style: solid; } div:nth-child(6) { border-style: double; } div:nth-child(7) { border-style: groove; } div:nth-child(8) { border-style: ridge; } div:nth-child(9) { border-style: inset; } div:nth-child(10) { border-style: outset; } body { font-family: sans-serif; padding: 20px; } div { padding: 10px; } div:not(:first-child) { margin-top: 10px; }
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="../assets/reset.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> </head> <body> <section> <div> <p>none</p> </div> <div> <p>hidden</p> </div> <div> <p>dotted</p> </div> <div> <p>dashed</p> </div> <div> <p>solid</p> </div> <div> <p>double</p> </div> <div> <p>groove</p> </div> <div> <p>ridge</p> </div> <div> <p>inset</p> </div> <div> <p>outset</p> </div> </section> </body> </html>