set border's thickness in percentages - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-width

Description

set border's thickness in percentages

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <meta name="viewport" content="width=device-width"> 
  <title>Border percentage vw by robocat</title> 
  <style>

html, body {
   margin: 0;
   padding: 0;
}
.bordered {<!--from ww w .j a  va 2s . c o m-->
   border: 5vw solid red;
}

      </style> 
 </head> 
 <body> 
  <h3>Border percentage vw by robocat</h3> 
  <div class="bordered">
    test 
  </div>  
 </body>
</html>

Related Tutorials