Div Style Border - Css

How to style border of a div using css?

Snippet Code

Rate this page :
  [ 0 votes]

This code let you to specify color, style and size of the border. This simple code styles the div border of your page.

<style> .testdiv { border-color: green; border-width:5px; border-top-style: dotted; border-right-style: solid; border-bottom-style: dotted; border-left-style: solid; border-radius:5px; width:250px; } </style> <div class='testdiv'>Welcome To Hscripts.com!!</div>


Ask Questions

Ask Question