min wang
0
Q:

css border width

.element {
  border-width: 2px;
}
4
element {
	border-width: 10px;
  	/* Or use shorthand border property */
  	/* width style colour */
  	border: 10px solid black;
}
1
/* Answer to: "css border width" */

/*
  The border-width property specifies the width of the four borders.

  The width can be set as a specific size (in px, pt, cm, em, etc)
  or by using one of the three pre-defined values: 
  thin, medium, or thick:
*/

p.one {
  border-style: solid;
  border-width: 5px;
}

p.two {
  border-style: solid;
  border-width: medium;
}

p.three {
  border-style: dotted;
  border-width: 2px;
}

p.four {
  border-style: dotted;
  border-width: thick;
}

/*
  For more information go over to:
  https://www.w3schools.com/css/css_border_width.asp
  and you may also want to check out:
  https://www.w3schools.com/cssref/pr_border-width.asp
*/
3

New to Communities?

Join the community