Skip to main content

Border Style Property - CSS

The border-style property sets the style of an element's for borders. List of all the border styles as shown on below sample.

DEMO

Solid
Dotted
Dashed
Double
Groove
Ridge
Inset
Outset

HTML

<article class="grid-box">
  <div class="solid">Solid</div>
  <div class="dotted">Dotted</div>
  <div class="dashed">Dashed</div>
  <div class="double">Double</div>
  <div class="groove">Groove</div>
  <div class="ridge">Ridge</div>
  <div class="inset">Inset</div>
  <div class="outset">Outset</div>	
</article>

CSS

.grid-box {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 0.5em;
}
.grid-box div {
  border-width: 6px;
  padding: 0.5em;
  border-color: hotpink;
}
.grid-box div.solid {
  border-style: solid;
}
.grid-box div.dotted {
  border-style: dotted;
}
.grid-box div.dashed{
  border-style: dashed;
}
.grid-box div.double{
  border-style: double;
}
.grid-box div.groove{
  border-style: groove;
}
.grid-box div.ridge{
  border-style: ridge;
}
.grid-box div.inset{
  border-style: inset;
}
.grid-box div.outset{
  border-style: outset;
}

Comments

Popular posts from this blog

Introduction

Hello world,  UIUX Component  is for those who newbie in HTML, CSS and JavaScript for their new career as Web Designer, Web Developer, Web Editor etc. We try our best to make sure we update the code which applicable for your daily routine in web development or maybe some for Apps content.  To utilise this site you should have basic knowledge on HTML, CSS and JavaScript. If you still not sure what we talking about, we have a few suggestion on where you should to start your knowledge. What is HTML HTML stands for Hyper Text Markup Language, the standard markup language for creating Web pages. Describes the structure of a Web page, consists of a series of elements which elements tell the browser how to display the content also elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc. HTML Tutorial What is CSS CSS stands for Cascading Style Sheets, describes how HTML elements are to be displayed on screen, pape...

Element Center and Middle - CSS

Make the element center and middle within the specific element width and height is easy using flex. This box centered! HTML   < div class = "box-center" > < strong > This box centered ! </ strong > < div > CSS . box - center { background - color: red; width: 100 % ; height: 200 px; display: flex; align - items: center; justify - content:center; } . box - center strong { background - color: limegreen; padding: 0.5 em; }

Distortion Glitch Text Effect - CSS

  Use multiple text-shadow properly in CSS on a text by comma separating the values. DEMO Distortion CSS h2 { color : darkorange ; font-family : sans-serif ; font-size : 3.5em ; text-transform : uppercase ; text-shadow : -3px -3px 0 cyan , 3px 3px 0 pink ; }