Css:- Border style

  • <!DOCTYPE html> 
    1. <html> 
    2.  
    3. <head> 
    4.  <meta name="viewport" content="width=device-width, initial-scale=1"> 
    5.  
    6.  <style> 
    7.   .brdr_cls { 
    8.    /*dotted,dashed,solid,groove,ridge,inset,outset*/ 
    9.    border-style: double; 
    10.    border-color: red; 
    11.    width: 50px; 
    12.    height: 50px; 
    13.   } 
    14.  </style> 
    15.  
    16. </head> 
    17.  
    18. <body> 
    19.  <div class="brdr_cls"></div> 
    20. </body> 
    21.  
    22. </html>

    23. Used of:-

    Border style/center 

    border-style

      This is used to style the border. border-style have some values they are
      • border-style:double is used to create double line arround the html element. 
        eg)
        This is example
      • border-style:dotted is used to create dotted line arround the html element. 
        eg)
        This is example
      • border-style:dashed is used to create dashed line arround the html element. 
        eg)
        This is example
      • border-style:solid is used to create normal line arround the html element. 
        eg)
        This is example
      • border-style:groove is specifies a 3D grooved border. The effect depends on the border-color value. 
        eg)
        This is example
      • border-style:ridge is specifies a 3D ridged border. The effect depends on the border-color value. 
        eg)
        This is example
      • border-style:inset is specifies a 3D inset border. The effect depends on the border-color value. 
        eg)
        This is example
      • border-style:outset is specifies a 3D outset border. The effect depends on the border-color value. 
        eg)
        This is example
    border-color
      This is used to set the border color.
    Css:- Border style Css:- Border style Reviewed by Network security on May 06, 2019 Rating: 5

    No comments:

    Useful Information

    Powered by Blogger.