logo

India's First Software Developer Community

Various Border

Learn how to set Different border on each side

    There are four type of border
    1) dotted
    2) solid
    3) dashed
    4) double

    For Example

        border: 1px solid #ff00bb;


<!DOCTYPE html>
<html>
<head>
<title> Border in CSS | W3codeIndia </title>
<style type="text/css">
/* Simple Border */
h2.simple_border
{
border:1px solid #ffbbff;
}
/* different border on each side */
h2.diff_border
{
border-style:solid dashed double dotted;
}
</style>
</head>
<body>
<center><h2 class="simple_border">WelCome To W3CodeIndia</h2></center>
<center><h2 class="diff_border">WelCome To W3CodeIndia</h2></center>
</body>
</html>




Subscribe Us :

Chapters :-


Advertisement