HTML CSS examples for CSS Property:box-shadow
Compare border and box shadow
<html> <head> <title>Thin border</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .thin {<!-- w w w. ja va 2s . com--> border: 1px solid white; box-shadow: 0 1px 0 gray; } .box { box-shadow: 0 0 1px black; } div.normalborder { border: 1px solid black; } div { margin-top: 8px; padding: 6px; } span { color: #3D6AA2; } </style> </head> <body> <span>Normal <hr>:</span> <hr> <br> <br> <span>Thin <hr>:</span> <hr class="thin"> <br> <br> <span>Normal <div> with border:</span> <div class="normalborder"> lala </div> <br> <br> <span>Thin <div> with border:</span> <div class="box thin"> lala </div> </body> </html>