Answers for "css border raduis"

CSS
47

css rounded corners

/* Set rounded corners with border-radius property */

.class {
  border-radius: 4px;
}

.circle {
  border-radius: 50%;
}
Posted by: Guest on February-15-2020
12

how to make borders rounded in css

#rcorners {
  border-radius: 25px;
}
Posted by: Guest on April-27-2020
1

css border-radius

.my-div{
  border: 2px solid #f00;
  border-radius: 50%;
  /* Specific Radius For Specific Border Side*/
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  /* 
    ShortHand 
    **border-radius: 5px 6px 7px 8px
  	5px => for top-left-radius
    6px => for top-right-radius
    7px => for bottom-left-radius
    8px => for bottom-right-radius
    **border-radius: 10px 20px
    10px => for top-left and top-right radius
    20px => for bottom-left and bottom-right radius

  */
}
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language