round borders css code example

Example 1: css rounded corners

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

.class {
  border-radius: 4px;
}

.circle {
  border-radius: 50%;
}

Example 2: how to make borders rounded in css

#rcorners {
  border-radius: 25px;
}

Example 3: how to round the corners of a div outline in css

div {
  outline: auto;
  outline-style: round;
}

Example 4: How to make a round corner in CSS

#roundCornerID {
    border-radius: 30%;
    width: 200px;
    height: 150px;   
}

Example 5: css round outline

/*A box-shadow can be used for a similar effect*/

.your-box-or-button-class{
box-shadow: 0 0 3px #000000;
}

Example 6: css rounded corners

/* Use border-radius property */

.class {
  border-radius: 5px;
}

.circle {
  border-radius: 50%;
}

Tags:

Html Example