<!doctype html> <html> <head> <title>Border-style</title> <link href="/assets/reset.css" rel="stylesheet"> <link href="setup.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> </head> <body> <section> <p>none</p> </section> <section> <p>hidden</p> </section> <section> <p>dotted</p> </section> <section> <p>dashed</p> </section> <section> <p>solid</p> </section> <section> <p>double</p> </section> <section> <p>groove</p> </section> <section> <p>ridge</p> </section> <section> <p>inset</p> </section> <section> <p>outset</p> </section> </body> </html>
/* Same as before. */ body { font-family: sans-serif; padding: 20px; } section { padding: 10px; }
section {border-width: 4px } /* All of them; easier to see! */ section:nth-child(1) { border-style: none; } section:nth-child(2) { border-style: hidden; } section:nth-child(3) { border-style: dotted; } section:nth-child(4) { border-style: dashed; } section:nth-child(5) { border-style: solid; } section:nth-child(6) { border-style: double; } section:nth-child(7) { border-style: groove; } section:nth-child(8) { border-style: ridge; } section:nth-child(9) { border-style: inset; } section:nth-child(10) { border-style: outset; } /* Every one but the first one. */ section:not(:first-child) { margin-top: 10px; }