Create box with dashed border - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-left-style

Description

Create box with dashed border

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

.borderbox {<!--from   w w w  .ja  va2  s  .c  o m-->
   border-style: dashed;
   border-width: 2px;
   border-color: red;
   position: absolute;
   height: 90%;
   width: 90%;
   top: 0;
   left: 0;
   margin: 5%;
}
h3 {
   font-size: 130px;
   text-align: center;
   color: #00a0df;
   margin: 4px auto 17px;
}
p {
   font-size: 20px;
   text-align: center;
   color: #00a0df;
   text-transform: uppercase;
}


      </style> 
 </head> 
 <body> 
  <div class="borderbox"> 
   <h3>+</h3> 
   <p>visa fler b?sts?ljare</p> 
  </div>  
 </body>
</html>

Related Tutorials