HTML CSS examples for CSS Widget:Border Style
Create a border that fully covers the adjacent corners in CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .box {<!-- www . java2s . c o m--> border: 1px solid #ddd; position: relative; } .box:after { position: absolute; display: block; content:''; /* Positioning */ top: 0; width: 100%; height: 3px; left: 0; right: 0; /* Color */ background-color: #3F9BD0; } </style> </head> <body> <div class="box"> test </div> </body> </html>