style.css
index.html
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; } /* Same as before. */ body { font-family: sans-serif; padding: 20px; } div { padding: 10px; } /* Every one but the first one. */ div:not(:first-child) { margin-top: 10px; }
<!DOCTYPE html> <html> <head> <title>Border-style</title> <link href="/assets/styles/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>