Answers for "make border smaller css"

CSS
4

border width css

.element {
  border-width: 2px;
}
Posted by: Guest on July-23-2020
1

border width css

element {
	border-width: 10px;
  	/* Or use shorthand border property */
  	/* width style colour */
  	border: 10px solid black;
}
Posted by: Guest on October-25-2020
0

how to set border length in css without div

div {
  width   : 200px;
  height  : 50px;   
  position: relative;
  z-index : 1;
  background: #eee;
}

div:before {
  content : "";
  position: absolute;
  left    : 0;
  bottom  : 0;
  height  : 1px;
  width   : 50%;  /* or 100px */
  border-bottom:1px solid magenta;
}
Posted by: Guest on March-27-2020
1

border width css

#some-div {
  /* [WIDTH] [FILL MODE] [COLOR] */
  border: 5px solid #f00; 
  
  /* draws solid a red line of 5px
  between the padding (inside the div)
  and the margin (outside the div) */
}
Posted by: Guest on January-25-2021
2

box sizing border box

*{
 box-sizing: border-box;
 }
Posted by: Guest on May-25-2020

Browse Popular Code Answers by Language