Answers for "how to give width in percentage to border in css"

CSS
0

how to change border height in css

ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
}

li {
  padding: 10px;
}

.custom-border {
  position: relative;
}

.custom-border:after {
  content: " ";
  position: absolute;
  border-left: 1px #6c757d solid;
  top: 35%;
  right: 0;
  height: 30%;
  margin-top: auto;
  margin-bottom: auto;
}
Posted by: Guest on November-27-2021
1

border-width in percentage

You can not set Border Width in the Percentage its the rule 
But you can able to do this just by wrapping into a new div 
and in most of the cases you did not need that
Posted by: Guest on September-23-2021

Code answers related to "how to give width in percentage to border in css"

Browse Popular Code Answers by Language