Borders in CSS



Basic code for Border style values
<!DOCTYPE html>
<html>
<head>
    <title>Background </title>
<link  rel=" shortcut icon" href=" favicon.png" >
<link  rel=" stylesheet" href=" style.css" >
</head>
<body>
   <p class="para"> Mallu Coder Sugu</p>
</body>
</html>

Border Style and source code :
Style Code
Dotted
  • Used to set a dotted border
.para {
border-style: dotted;
}
Dashed
  • It defines a dashed border
.para {
border-style: dashed;
}
Solid
  • It defines a solid border
.para {
border-style: solid;
}
Double
  • It defines a double border
.para {
border-style: double;
}
Groove
  • It defines a 3D grooved border. The effect depends on the border-color value.
.para {
border-style: groove;
}
Ridge
  • It defines a 3D ridged border. The effect depends on the border-color value.
.para {
border-style: ridge;
}
Inset
  • It defines a 3D inset border. The effect depends on the border -color value
.para {
border-style: inset;
}
outset
  • It defines a 3D outset border.The effect depends on the boder-color value.
.para {
border-style: outset;
}
None
  • It defines no border
.para {
border-style: none;
}
Hidden
  • It defines a hidden border
.para {
border-style: hidden;
}




Other Border Properties:


Property Description
border-color:
border-color is used to set the color of the border.
border-radius:
The border-radius property is used to set the radius of the border corners.
border-style:
The border-style property defines what type of border will be displayed. Now let's see some border-style values:

Introduction to CSS Part-2 PDF Click here to download

Easy Pickup


  • 1. CSS More Samples
  • 2. CSS Malayalam Classes
  • 3. CSS Malayalam Notes

New Post 



View Post


Acer Predator Neo (2023) Core i7 13700HX 13th Gen







ചന്ദ്രനുശേഷം സൂര്യൻ! അഭിമാനമാകാൻ ആദിത്യാ എല്‍1; ദൗത്യത്തെക്കുറിച്ച് അറിയേണ്ടതെല്ലാം...





മൈക്രോസോഫ്റ്റ് എക്സൽ ഉപയോഗിക്കുന്നുണ്ടോ?, ഇനി മാറ്റം ഇങ്ങനെ......



SYAMRAJ R

Founder and Developer of Mallu Coder Sugu.We provide the best Computer or Programming Related Content With Notes PDF, Amazing Designs, Easy to Readable for Learners.






Welcome to our Web Designing Studio! Stay and learn from here... Follow our social media for new updates